Package pl.sparkbit.commons.exception
Class BusinessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
pl.sparkbit.commons.exception.BusinessException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NotFoundException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBusinessException(String message) BusinessException(String message, String errorCode) BusinessException(String message, String... messageDetails) BusinessException(String message, String errorCode, String... messageDetails) -
Method Summary
Modifier and TypeMethodDescriptionOverride this method to add Exception-specific error attributes to the JSON error response.String[]Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BusinessException
-
BusinessException
-
BusinessException
-
BusinessException
-
-
Method Details
-
getMessageDetails
-
getErrorCode
-
getAdditionalErrorDetails
Override this method to add Exception-specific error attributes to the JSON error response.The returned map will be available under "errorDetails" path.
-