|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.palo.api.PaloAPIException
public class PaloAPIException
PaloException
All operations of the PALO-API in this package potentially throw this exception or other runtime exceptions.
It is best practise to anticipated these exceptions where
appropriate. Since checked-exceptions don't scale well and
force the clients to write a lot of catch blocks, the
PaloAPIException
is unchecked.
Constructor Summary | |
---|---|
PaloAPIException(java.lang.String msg)
Constructs a new PaloAPIException |
|
PaloAPIException(java.lang.String msg,
java.lang.Throwable cause)
Constructs a new PaloAPIException |
|
PaloAPIException(java.lang.Throwable cause)
|
Method Summary | |
---|---|
java.lang.Object |
getData()
Returns the optional set data object or null if none was
set. |
java.lang.String |
getDescription()
Returns an optional error description. |
java.lang.String |
getErrorCode()
Returns an optional error code or null if none was defined |
java.lang.String |
getReason()
Returns an optional description of the error cause. |
void |
setData(java.lang.Object data)
Sets an optional data object. |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PaloAPIException(java.lang.String msg)
PaloAPIException
msg
- the message for the exception.public PaloAPIException(java.lang.String msg, java.lang.Throwable cause)
PaloAPIException
msg
- the message for the exception.cause
- the nested exception.public PaloAPIException(java.lang.Throwable cause)
Method Detail |
---|
public final java.lang.String getErrorCode()
null
if none was defined
null
public final java.lang.String getDescription()
Throwable.getMessage()
public final java.lang.String getReason()
getDescription()
public final void setData(java.lang.Object data)
data
- an optional data object or null
public final java.lang.Object getData()
null
if none was
set.
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |