Class ValidationException

    • Constructor Detail

      • ValidationException

        public ValidationException​(ValidationError validationError)
        Constructor for creating an exception from a single ValidationError.
        Parameters:
        validationError - error
      • ValidationException

        public ValidationException​(ValidationContext context,
                                   String bundle,
                                   String message,
                                   Object... args)
        Constructor
        Parameters:
        bundle - resource bundle name
        message - message key
        args - message arguments
      • ValidationException

        public ValidationException​(ValidationContext context,
                                   String bundle,
                                   String message,
                                   Throwable cause,
                                   Object... args)
        Constructor
        Parameters:
        bundle - resource bundle name
        message - message key
        cause - cause
        args - message arguments
    • Method Detail

      • getLocalizedMessage

        public String getLocalizedMessage​(ClassLoader classLoader)
      • getValidationError

        public final ValidationError getValidationError()
        Returns the validation error associated with this exception
        Returns:
        the validation error
      • getValidatorErrors

        public Map<String,​Collection<ValidationError>> getValidatorErrors()
        Returns the validation errors associated with this exception
        Returns:
        the validation errors