Class BusinessException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NotFoundException

@ResponseStatus(BAD_REQUEST) public class BusinessException extends RuntimeException
See Also:
  • Constructor Details

    • BusinessException

      public BusinessException(String message)
    • BusinessException

      public BusinessException(String message, String errorCode)
    • BusinessException

      public BusinessException(String message, String... messageDetails)
    • BusinessException

      public BusinessException(String message, String errorCode, String... messageDetails)
  • Method Details

    • getMessageDetails

      public String[] getMessageDetails()
    • getErrorCode

      public String getErrorCode()
    • getAdditionalErrorDetails

      protected Map<String,Object> getAdditionalErrorDetails()
      Override this method to add Exception-specific error attributes to the JSON error response.

      The returned map will be available under "errorDetails" path.