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 webpage details the `ValidationException` class within the Google API Common library for Java, which extends `IllegalArgumentException`."],["The `ValidationException` is thrown when there are issues with path templates, HTTP configurations, or related framework methods."],["The class offers static methods to manage a thread-local validation context description using `pushCurrentThreadValidationContext` and clear it using `popCurrentThreadValidationContext`."],["It includes a constructor, `ValidationException(String format, Object[] args)`, to create exceptions with implicit context, plus links to the inherited members and java documentation."],["The page provides links to the documentation for different versions of the library, ranging from version 2.46.1 (latest) down to 2.1.2."]]],[]]