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-08-28 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eValidationException\u003c/code\u003e class within the Google API Common library for Java, which is an exception thrown when a path template or HTTP configuration has validation issues.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eValidationException\u003c/code\u003e class is a subclass of \u003ccode\u003eIllegalArgumentException\u003c/code\u003e, and it allows for the setting of a thread-local validation context description that can be inherited by each exception.\u003c/p\u003e\n"],["\u003cp\u003eThe 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.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes static methods for setting and clearing the validation context, specifically \u003ccode\u003epushCurrentThreadValidationContext\u003c/code\u003e and \u003ccode\u003epopCurrentThreadValidationContext\u003c/code\u003e, which are thread-safe.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists inherited methods from \u003ccode\u003eObject\u003c/code\u003e and \u003ccode\u003eThrowable\u003c/code\u003e, as well as a constructor that accepts a format string and an array of objects to provide custom error messages.\u003c/p\u003e\n"]]],[],null,[]]