Class RequestValidationException

All Implemented Interfaces:
CoreExceptionFormat, Serializable

public class RequestValidationException extends CoreRuntimeException
Throw when a request has error validation.
See Also:
Serialized Form
  • Constructor Details

    • RequestValidationException

      public RequestValidationException(String message)
      Parameters:
      message - the error message that caused validation error.
  • Method Details

    • lengthError

      public static RequestValidationException lengthError(ValidatorSettings settings, int length)
      Thrown when input validation fails due to length constraint.
      Parameters:
      settings - the settings object for the validation that failed.
      length - the actual length of the input.
      Returns:
      a new exception object.