Class ErrorInformationImpl
- java.lang.Object
-
- org.glassfish.hk2.runlevel.internal.ErrorInformationImpl
-
- All Implemented Interfaces:
ErrorInformation
public class ErrorInformationImpl extends java.lang.Object implements ErrorInformation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.hk2.runlevel.ErrorInformation
ErrorInformation.ErrorAction
-
-
Field Summary
Fields Modifier and Type Field Description private ErrorInformation.ErrorAction
action
private Descriptor
descriptor
private java.lang.Throwable
error
-
Constructor Summary
Constructors Constructor Description ErrorInformationImpl(java.lang.Throwable error, ErrorInformation.ErrorAction action, Descriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorInformation.ErrorAction
getAction()
Returns the action the system will takejava.lang.Throwable
getError()
Returns the throwable that caused the errorDescriptor
getFailedDescriptor()
Returns the descriptor associated with this failure, or null if the descriptor could not be determinedvoid
setAction(ErrorInformation.ErrorAction action)
Sets the action the system should takejava.lang.String
toString()
-
-
-
Field Detail
-
error
private final java.lang.Throwable error
-
action
private ErrorInformation.ErrorAction action
-
descriptor
private final Descriptor descriptor
-
-
Constructor Detail
-
ErrorInformationImpl
ErrorInformationImpl(java.lang.Throwable error, ErrorInformation.ErrorAction action, Descriptor descriptor)
-
-
Method Detail
-
getError
public java.lang.Throwable getError()
Description copied from interface:ErrorInformation
Returns the throwable that caused the error- Specified by:
getError
in interfaceErrorInformation
- Returns:
- The non-null throwable that caused the error to occur
-
getAction
public ErrorInformation.ErrorAction getAction()
Description copied from interface:ErrorInformation
Returns the action the system will take- Specified by:
getAction
in interfaceErrorInformation
- Returns:
- The action the system will take once the onError method has returned
-
setAction
public void setAction(ErrorInformation.ErrorAction action)
Description copied from interface:ErrorInformation
Sets the action the system should take- Specified by:
setAction
in interfaceErrorInformation
- Parameters:
action
- The action the system will take once the onError method has returned
-
getFailedDescriptor
public Descriptor getFailedDescriptor()
Description copied from interface:ErrorInformation
Returns the descriptor associated with this failure, or null if the descriptor could not be determined- Specified by:
getFailedDescriptor
in interfaceErrorInformation
- Returns:
- The failed descriptor, or null if the descriptor could not be determined
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-