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, toString
public 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 APIExceptionCodes
public APIExceptionCodes getCode()
Getter for the field code
.
APIExceptionCodes
object.public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public String getMessage()
getMessage
in class Throwable
Copyright © 2015, 2016, Oracle and/or its affiliates. All rights reserved.