public class ApiException extends Exception
| Modifier and Type | Field and Description |
|---|---|
int |
status
HTTP status code
|
| Constructor and Description |
|---|
ApiException(String message,
int status)
ApiError constructor
|
ApiException(String message,
int status,
Throwable cause)
ApiError constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
getArguments()
Returns message arguments for i18n
|
String |
getCode()
Returns error code used for i18n
|
void |
setArguments(List<Object> args)
Set message arguments for i18n
|
void |
setCode(String code)
Sets error code, used for i18n
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ApiException(String message, int status)
message - error messagestatus - HTTP statuspublic void setCode(String code)
code - error code for i18npublic String getCode()
public void setArguments(List<Object> args)
args - arguments for i18nCopyright © 2021. All rights reserved.