|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.openmrs.api.APIException
public class APIException
Represents often fatal errors that occur within the API infrastructure. All service methods
should be marked as possibly throwing this exception. The preferred methods to use in this
exception is the APIException(String, Throwable)
or the APIException(String)
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
APIException()
Default empty constructor. |
|
APIException(java.lang.String message)
General constructor to give the end user a helpful message that relates to why this error occurred. |
|
APIException(java.lang.String message,
java.lang.Throwable cause)
General constructor to give the end user a helpful message and to also propagate the parent error exception message. |
|
APIException(java.lang.Throwable cause)
Constructor used to simply chain a parent exception cause to an APIException. |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public APIException()
APIException(String)
constructor to specify a helpful message to the end user
public APIException(java.lang.String message)
message
- helpful message string for the end userpublic APIException(java.lang.String message, java.lang.Throwable cause)
message
- helpful message string for the end usercause
- the parent exception cause that this APIException is wrapping aroundpublic APIException(java.lang.Throwable cause)
APIException(String, Throwable)
constructor if at all
possible instead of this one.
cause
- the parent exception cause that this APIException is wrapping around
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |