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 validation issue arises with path templates or HTTP configurations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eValidationException\u003c/code\u003e class extends \u003ccode\u003eIllegalArgumentException\u003c/code\u003e and provides methods for managing a thread-local validation context, allowing for detailed error descriptions in a multi-threaded environment.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions available for this \u003ccode\u003eValidationException\u003c/code\u003e going back to version 2.1.2, with the latest being 2.46.1.\u003c/p\u003e\n"],["\u003cp\u003eThe validation context can be set and cleared using the static methods \u003ccode\u003epushCurrentThreadValidationContext()\u003c/code\u003e and \u003ccode\u003epopCurrentThreadValidationContext()\u003c/code\u003e, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists the inherited members, as well as static methods and constructors available for use with \u003ccode\u003eValidationException\u003c/code\u003e, with links to their respective documentation.\u003c/p\u003e\n"]]],[],null,[]]