Class BadRequestException

    • Constructor Detail

      • BadRequestException

        public BadRequestException​(String error,
                                   Throwable cause,
                                   String errorKey)
        Create a HTTP 400 Bad Request exception class.
        Parameters:
        error - the error message which will be included in the JSON error response
        cause - the cause of the error the root cause of the error
        errorKey - the error key the localized message error key
      • BadRequestException

        public BadRequestException​(String error,
                                   String errorKey)
        Create a HTTP 400 Bad Request exception class.
        Parameters:
        error - the error message which will be included in the JSON error response
        errorKey - the error key the localized message error key
    • Method Detail

      • getErrorKey

        public String getErrorKey()
        Returns:
        the localized errorKey