public class APIException extends Exception
This is important, because sometimes, the output of a Framework may be a descriptive object which doesn't inherit from Throwable and thus cannot be attached in "initCause".
Examples may be a SOAP Fault.
| Constructor and Description |
|---|
APIException(String string) |
APIException(String errorMessage,
Throwable t) |
APIException(Throwable t) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getPayload()
Return payload, or null if none was set.
|
APIException |
setPayload(Object payload)
Set a specific payload into this Exception, which doesn't necessarily
inherit from Throwable.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic APIException(Throwable t)
t - public APIException(String string)
string - public Object getPayload()
public APIException setPayload(Object payload)
payload - Copyright © 2017. All rights reserved.