Package org.glassfish.hk2.runlevel
Interface ErrorInformation
- All Known Implementing Classes:
ErrorInformationImpl
public interface ErrorInformation
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
The set of actions that the system can perform when an error is detected -
Method Summary
Modifier and TypeMethodDescriptionReturns the action the system will takegetError()
Returns the throwable that caused the errorReturns the descriptor associated with this failure, or null if the descriptor could not be determinedvoid
Sets the action the system should take
-
Method Details
-
getError
Throwable getError()Returns the throwable that caused the error- Returns:
- The non-null throwable that caused the error to occur
-
getAction
ErrorInformation.ErrorAction getAction()Returns the action the system will take- Returns:
- The action the system will take once the onError method has returned
-
setAction
Sets the action the system should take- Parameters:
action
- The action the system will take once the onError method has returned
-
getFailedDescriptor
Descriptor getFailedDescriptor()Returns the descriptor associated with this failure, or null if the descriptor could not be determined- Returns:
- The failed descriptor, or null if the descriptor could not be determined
-