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
|
java.lang.String |
toString() |
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()
ErrorInformation
getError
in interface ErrorInformation
public ErrorInformation.ErrorAction getAction()
ErrorInformation
getAction
in interface ErrorInformation
public void setAction(ErrorInformation.ErrorAction action)
ErrorInformation
setAction
in interface ErrorInformation
action
- The action the system will take
once the onError method has returnedpublic Descriptor getFailedDescriptor()
ErrorInformation
getFailedDescriptor
in interface ErrorInformation
public java.lang.String toString()
toString
in class java.lang.Object