public class ErrorInformationImpl extends java.lang.Object implements ErrorInformation
ErrorInformation.ErrorAction| Modifier and Type | Field and Description |
|---|---|
private ErrorInformation.ErrorAction |
action |
private Descriptor |
descriptor |
private java.lang.Throwable |
error |
| Constructor and Description |
|---|
ErrorInformationImpl(java.lang.Throwable error,
ErrorInformation.ErrorAction action,
Descriptor descriptor) |
| Modifier and Type | Method and Description |
|---|---|
ErrorInformation.ErrorAction |
getAction()
Returns the action the system will take
|
java.lang.Throwable |
getError()
Returns the throwable that caused the error
|
Descriptor |
getFailedDescriptor()
Returns the descriptor associated with this failure,
or null if the descriptor could not be determined
|
void |
setAction(ErrorInformation.ErrorAction action)
Sets the action the system should take
|
private final java.lang.Throwable error
private ErrorInformation.ErrorAction action
private final Descriptor descriptor
ErrorInformationImpl(java.lang.Throwable error,
ErrorInformation.ErrorAction action,
Descriptor descriptor)
public java.lang.Throwable getError()
ErrorInformationgetError in interface ErrorInformationpublic ErrorInformation.ErrorAction getAction()
ErrorInformationgetAction in interface ErrorInformationpublic void setAction(ErrorInformation.ErrorAction action)
ErrorInformationsetAction in interface ErrorInformationaction - The action the system will take
once the onError method has returnedpublic Descriptor getFailedDescriptor()
ErrorInformationgetFailedDescriptor in interface ErrorInformation