Class ErrorInformationImpl
java.lang.Object
org.glassfish.hk2.runlevel.internal.ErrorInformationImpl
- All Implemented Interfaces:
ErrorInformation
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.hk2.runlevel.ErrorInformation
ErrorInformation.ErrorAction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ErrorInformation.ErrorAction
private final Descriptor
private final Throwable
-
Constructor Summary
ConstructorsConstructorDescriptionErrorInformationImpl
(Throwable error, ErrorInformation.ErrorAction action, Descriptor descriptor) -
Method Summary
-
Field Details
-
error
-
action
-
descriptor
-
-
Constructor Details
-
ErrorInformationImpl
ErrorInformationImpl(Throwable error, ErrorInformation.ErrorAction action, Descriptor descriptor)
-
-
Method Details
-
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
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
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
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
-