@ResponseStatus(value=BAD_REQUEST) public class BusinessException extends RuntimeException
| Constructor and Description |
|---|
BusinessException(String message) |
BusinessException(String message,
String... messageDetails) |
BusinessException(String message,
String errorCode) |
BusinessException(String message,
String errorCode,
String... messageDetails) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getAdditionalErrorDetails()
Override this method to add Exception-specific error attributes to the JSON error response.
|
String |
getErrorCode() |
String[] |
getMessageDetails() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringCopyright © 2021. All rights reserved.