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` used for validation issues in path templates and HTTP configurations."],["The page provides access to documentation for numerous versions of this `ValidationException` class, ranging from version 2.46.1 (latest) down to version 2.1.2."],["The `ValidationException` class can have a thread-local validation context description set to allow thread safety and context inheritance for exceptions."],["The page covers the static methods `popCurrentThreadValidationContext()` for clearing the validation context and `pushCurrentThreadValidationContext()` for setting the validation context description, which are key for thread-specific exception contexts."],["The class contains a constructor: `ValidationException(String format, Object[] args)`, used to build a validation exception with an implicit context that takes in a format and array of objects."]]],[]]