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-04-09 UTC."],[[["This webpage details the `ValidationException` class, which is a subclass of `IllegalArgumentException` designed for path template and HTTP configuration validation errors."],["The `ValidationException` class allows for setting a thread-local validation context description, which is inherited by each exception."],["The page provides access to different versions of `ValidationException`, from version 2.1.2 all the way up to the latest version 2.46.1, and each version's corresponding documentation."],["There are static methods available, such as `pushCurrentThreadValidationContext` to set the context and `popCurrentThreadValidationContext` to clear it, both of which are thread-safe."],["The class can be constructed via `ValidationException(String format, Object[] args)`, which allows the construction of validation exceptions with an implicit context."]]],[]]