@BetaApi public class ValidationException extends IllegalArgumentException
Modifier and Type | Class and Description |
---|---|
static interface |
ValidationException.Supplier<T> |
Constructor and Description |
---|
ValidationException(String format,
Object... args)
Construct validation exception with implicit context.
|
Modifier and Type | Method and Description |
---|---|
static void |
popCurrentThreadValidationContext()
Clears the validation context.
|
static void |
pushCurrentThreadValidationContext(String context) |
static void |
pushCurrentThreadValidationContext(ValidationException.Supplier<String> supplier)
Sets the validation context description.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static void pushCurrentThreadValidationContext(ValidationException.Supplier<String> supplier)
public static void pushCurrentThreadValidationContext(String context)
public static void popCurrentThreadValidationContext()