public class APIException extends RuntimeException
APIException(String, Throwable)
or the APIException(String)
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
APIException()
Default empty constructor.
|
APIException(String message)
General constructor to give the end user a helpful message that relates to why this error
occurred.
|
APIException(String message,
Throwable cause)
General constructor to give the end user a helpful message and to also propagate the parent
error exception message.
|
APIException(Throwable cause)
Constructor used to simply chain a parent exception cause to an APIException.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final long serialVersionUID
public APIException()
APIException(String)
constructor to specify a helpful message to the end userpublic APIException(String message)
message
- helpful message string for the end userpublic APIException(String message, Throwable cause)
message
- helpful message string for the end usercause
- the parent exception cause that this APIException is wrapping aroundpublic APIException(Throwable cause)
APIException(String, Throwable)
constructor if at all
possible instead of this one.cause
- the parent exception cause that this APIException is wrapping aroundCopyright © 2018 OpenMRS LLC.. All Rights Reserved.