Package org.openrewrite
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.openrewrite.ValidationException
- All Implemented Interfaces:
Serializable
Turns a set of
Validated.Invalid
into a throwable exception, which is used to throw an unchecked exception
at runtime when one or more properties are invalid.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValidationException
(Validated<?> validation) ValidationException
(Validated<?> validation, @Nullable URI source) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationException
-
ValidationException
-
-
Method Details
-
getSource
-
setSource
-
getMessage
- Overrides:
getMessage
in classThrowable
-