Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.autumnframework.service.validation.exceptions.ValidationException
- All Implemented Interfaces:
Serializable
Spring has two MethodArgumentNotValidExceptions, they are available in web and messaging and are slightly different.
We don't want to make dependencies to either of these projects and restrict usage of our validation project, thats
why we choose to introduce our own exception based on the same code as MethodArgumentNotValidExceptions.
Since we wrap the bindingResults, you can choose to wrap it in a Spring MethodArgumentNotValidExceptions in your
rest/messaging project.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValidationException(org.springframework.validation.BindingResult bindingResult) -
Method Summary
Modifier and TypeMethodDescriptionfinal org.springframework.validation.BindingResultMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationException
public ValidationException(org.springframework.validation.BindingResult bindingResult) - Parameters:
bindingResult-
-
-
Method Details
-
getBindingResult
@Nullable public final org.springframework.validation.BindingResult getBindingResult()- Returns:
-