public class APIException extends RuntimeException
Constructor and Description |
---|
APIException() |
APIException(String message) |
APIException(String message,
HttpStatus status) |
APIException(String message,
int httpErrorCode) |
APIException(String message,
int httpErrorCode,
int apiErrorCode) |
APIException(String message,
int httpErrorCode,
int apiErrorCode,
List<APILogMessage> logMessages) |
APIException(String message,
int httpErrorCode,
int apiErrorCode,
List<APILogMessage> logMessages,
Map<String,LinkedList<String>> fieldErrors) |
APIException(String message,
int httpErrorCode,
Object payload) |
APIException(String message,
int httpErrorCode,
Throwable cause) |
APIException(String message,
Throwable exception) |
APIException(Throwable exception) |
Modifier and Type | Method and Description |
---|---|
APIException |
addErrorMessage(String errorMessage) |
APIException |
addFieldError(String name,
String error) |
boolean |
equals(Object o) |
int |
getApiErrorCode() |
Throwable |
getCause() |
List<APILogMessage> |
getErrorMessages() |
Map<String,LinkedList<String>> |
getFieldErrors() |
int |
getHttpErrorCode() |
Locale |
getLocale() |
String |
getLocalizedMessage() |
String |
getMessage() |
Object |
getPayload() |
String |
getResult() |
StackTraceElement[] |
getStackTrace() |
int |
hashCode() |
APIException |
setApiErrorCode(int apiErrorCode) |
void |
setErrorMessages(List<APILogMessage> logMessages) |
APIException |
setFieldErrors(BindingResult result) |
APIException |
setFieldErrors(Map<String,LinkedList<String>> fieldErrors) |
APIException |
setHttpErrorCode(int httpErrorCode) |
void |
setLocale(Locale locale) |
APIException |
setPayload(Object payload) |
void |
setResult(String result) |
String |
toString() |
addSuppressed, fillInStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public APIException()
public APIException(Throwable exception)
public APIException(String message, HttpStatus status)
public APIException(String message, int httpErrorCode)
public APIException(String message)
public APIException(String message, int httpErrorCode, int apiErrorCode)
public APIException(String message, int httpErrorCode, int apiErrorCode, List<APILogMessage> logMessages)
public APIException(String message, int httpErrorCode, int apiErrorCode, List<APILogMessage> logMessages, Map<String,LinkedList<String>> fieldErrors)
public String getResult()
public void setResult(String result)
public void setLocale(Locale locale)
public Locale getLocale()
public int getHttpErrorCode()
public APIException setHttpErrorCode(int httpErrorCode)
public int getApiErrorCode()
public APIException setApiErrorCode(int apiErrorCode)
public Object getPayload()
public APIException setPayload(Object payload)
public List<APILogMessage> getErrorMessages()
public void setErrorMessages(List<APILogMessage> logMessages)
public Map<String,LinkedList<String>> getFieldErrors()
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public APIException setFieldErrors(Map<String,LinkedList<String>> fieldErrors)
public APIException setFieldErrors(BindingResult result)
public APIException addErrorMessage(String errorMessage)
public APIException addFieldError(String name, String error)
public String getMessage()
getMessage
in class Throwable
public StackTraceElement[] getStackTrace()
getStackTrace
in class Throwable
Copyright © 2020. All rights reserved.