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-17 UTC."],[[["This webpage details the `ValidationException` class within the Google API Common library for Java, which is an exception thrown when a validation issue arises with a path template, HTTP configuration, or related framework methods."],["The `ValidationException` class extends `IllegalArgumentException`, enabling it to function as a subclass for handling illegal argument issues, while also allowing the setting of a thread-local validation context."],["The page provides access to the API documentation for the Validation Exception across multiple versions, from version 2.1.2 up to the latest 2.46.1, offering a comprehensive history of the class."],["The documentation includes information on inherited members, static methods to manage thread validation contexts, and the constructors, specifying their parameters and descriptions."],["There are static methods available, such as `popCurrentThreadValidationContext()` to clear the context and `pushCurrentThreadValidationContext()` to set a thread-specific context description."]]],[]]