public class APIException extends RuntimeException
APIException class.
| Constructor and Description |
|---|
APIException(APIExceptionCodes code)
Constructor for APIException.
|
APIException(APIExceptionCodes code, String... insertIntoMsg)
Constructor for APIException.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildMessage(String key)
buildMessage.
|
protected String |
buildMessage(String key, Locale locale)
buildMessage.
|
APIExceptionCodes |
getCode()
Getter for the field
code. |
String |
getLocalizedMessage() |
String |
getMessage() |
String |
getMessage(Locale locale)
getMessage.
|
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic APIException(APIExceptionCodes code)
Constructor for APIException.
code - a APIExceptionCodes object.public APIException(APIExceptionCodes code, String... insertIntoMsg)
Constructor for APIException.
code - a APIExceptionCodes object.insertIntoMsg - Array of Strings that are to be replaced in the message of the APIExceptionCodespublic APIExceptionCodes getCode()
Getter for the field code.
APIExceptionCodes object.public String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic String getMessage()
getMessage in class ThrowableCopyright © 2015 Oracle and/or its affiliates. All rights reserved.