Exception thrown if there is a validation problem with a path template, http config, or related
framework methods. Comes as an illegal argument exception subclass. Allows to globally set a
thread-local validation context description which each exception inherits.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eValidationException\u003c/code\u003e class, a subclass of \u003ccode\u003eIllegalArgumentException\u003c/code\u003e, used for issues within path templates, HTTP configurations, or related framework methods.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eValidationException\u003c/code\u003e class allows for a thread-local validation context description, which is inherited by each exception for easier troubleshooting.\u003c/p\u003e\n"],["\u003cp\u003eThe page offers access to the documentation for various versions of the class, from 2.1.2 up to the latest 2.46.1.\u003c/p\u003e\n"],["\u003cp\u003eThere are static methods provided, including \u003ccode\u003epopCurrentThreadValidationContext()\u003c/code\u003e and \u003ccode\u003epushCurrentThreadValidationContext()\u003c/code\u003e, to manage the validation context for each thread.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists inherited members from \u003ccode\u003eObject\u003c/code\u003e and \u003ccode\u003eThrowable\u003c/code\u003e, as well as constructor details for creating a \u003ccode\u003eValidationException\u003c/code\u003e with implicit context using a format and arguments.\u003c/p\u003e\n"]]],[],null,[]]