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-07-01 UTC."],[[["This page documents the `ValidationException` class, which is a subclass of `IllegalArgumentException`, used to indicate validation issues within path templates, HTTP configurations, or related framework elements."],["The latest version available is 2.46.1, with a range of prior versions listed, from 2.45.0 to 2.1.2."],["`ValidationException` allows for setting a thread-local validation context, enabling each exception to inherit a context description for better debugging."],["The class provides static methods `pushCurrentThreadValidationContext` to set the validation context for a specific thread and `popCurrentThreadValidationContext` to clear the validation context."],["The listed versions of the `ValidationException` class all reside under the `com.google.api.pathtemplate` package."]]],[]]