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 path template or HTTP configuration has validation issues."],["The `ValidationException` class is a subclass of `IllegalArgumentException`, and it allows for the setting of a thread-local validation context description that can be inherited by each exception."],["The provided documentation covers various versions of the API, ranging from version 2.1.2 to 2.46.1 (latest), allowing users to consult the documentation relevant to their project's specific version."],["The class includes static methods for setting and clearing the validation context, specifically `pushCurrentThreadValidationContext` and `popCurrentThreadValidationContext`, which are thread-safe."],["The documentation lists inherited methods from `Object` and `Throwable`, as well as a constructor that accepts a format string and an array of objects to provide custom error messages."]]],[]]