Package com.shri.restinpeace.exception
Class RestInPeaceValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.shri.restinpeace.exception.RestInPeaceValidationException
- All Implemented Interfaces:
Serializable
Checked exception thrown by
ReflectiveRestClientValidator.validate(Class)
when a @RestClient interface fails validation. Carries the full
ValidationResult so every problem found can be reported at once
instead of failing on the first one.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRestInPeaceValidationException(ValidationResult validationResult) Creates the exception for a failed validation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the full validation result, including every error found.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RestInPeaceValidationException
Creates the exception for a failed validation.- Parameters:
validationResult- the full validation result, including every error found
-
-
Method Details
-
getValidationResult
Returns the full validation result, including every error found.- Returns:
- the validation result
-