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-09 UTC."],[[["This page documents the `ValidationException` class, a subclass of `IllegalArgumentException`, within the Google API Path Template library, primarily used to indicate validation issues related to path templates or HTTP configurations."],["The 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."],["`ValidationException` includes static methods to `push` and `pop` a thread-local validation context, allowing for thread-safe management of context descriptions that are inherited by each exception."],["The class provides a constructor, `ValidationException(String format, Object[] args)`, that can create an exception instance with an implicit context given a string format and an array of arguments."],["`ValidationException` inherits a variety of methods from superclasses like `Object` and `Throwable`, covering functionality for cloning, comparison, thread operations, and exception handling."]]],[]]