Class ValidationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.autumnframework.service.validation.exceptions.ValidationException
All Implemented Interfaces:
Serializable

public class ValidationException extends RuntimeException
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 Details

    • ValidationException

      public ValidationException(org.springframework.validation.BindingResult bindingResult)
      Parameters:
      bindingResult -
  • Method Details

    • getBindingResult

      @Nullable public final org.springframework.validation.BindingResult getBindingResult()
      Returns: