Class ValidationException

All Implemented Interfaces:
Serializable

public class ValidationException extends RuntimeException
Exception for validation errors.
See Also:
  • Constructor Details

    • ValidationException

      public ValidationException()
      Default constructor.
    • ValidationException

      public ValidationException(org.springframework.validation.Errors errors)
      Constructor with Errors.
      Parameters:
      errors - the validation errors
    • ValidationException

      public ValidationException(org.springframework.validation.Errors errors, org.springframework.context.MessageSource messageSource)
      Constructor with Errors and a MessageSource.
      Parameters:
      errors - the errors
      messageSource - the message source to use to resolve the Errors against
    • ValidationException

      public ValidationException(org.springframework.validation.Errors errors, org.springframework.context.MessageSource messageSource, Throwable cause)
      Constructor with Errors and a MessageSource and root cause.
      Parameters:
      errors - the errors
      messageSource - the message source to use to resolve the Errors against
      cause - the causing exception
  • Method Details

    • getErrors

      public org.springframework.validation.Errors getErrors()
    • getMessageSource

      public org.springframework.context.MessageSource getMessageSource()