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 page documents the \u003ccode\u003eValidationException\u003c/code\u003e class, a subclass of \u003ccode\u003eIllegalArgumentException\u003c/code\u003e, within the Google API Path Template library, primarily used to indicate validation issues related to path templates or HTTP configurations.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this documentation is for version 2.46.1, with a list of links provided to access documentation for previous versions, ranging back to 2.1.2.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eValidationException\u003c/code\u003e includes static methods to \u003ccode\u003epush\u003c/code\u003e and \u003ccode\u003epop\u003c/code\u003e a thread-local validation context, allowing for thread-safe management of context descriptions that are inherited by each exception.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides a constructor, \u003ccode\u003eValidationException(String format, Object[] args)\u003c/code\u003e, that can create an exception instance with an implicit context given a string format and an array of arguments.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eValidationException\u003c/code\u003e inherits a variety of methods from superclasses like \u003ccode\u003eObject\u003c/code\u003e and \u003ccode\u003eThrowable\u003c/code\u003e, covering functionality for cloning, comparison, thread operations, and exception handling.\u003c/p\u003e\n"]]],[],null,[]]