public class APIException extends Exception
Constructor and Description |
---|
APIException()
Creates a new instance of
APIException without detail message. |
APIException(String msg)
Constructs an instance of
APIException with the specified
detail message. |
APIException(String message,
Exception previous)
An api exception with a cause
|
Modifier and Type | Method and Description |
---|---|
Exception |
getPrevious()
Retrieve the previous exception if any
|
void |
printToLog(org.apache.commons.logging.Log log)
Print this exception to the log
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public APIException()
APIException
without detail message.public APIException(String msg)
APIException
with the specified
detail message.msg
- the detail message.public Exception getPrevious()
public void printToLog(org.apache.commons.logging.Log log)
log
- Log to print toCopyright © 2017. All rights reserved.