- All Known Implementing Classes:
ErrorInformationImpl
public interface ErrorInformation
- Author:
- jwells
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe 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 errororg.glassfish.hk2.api.DescriptorReturns the descriptor associated with this failure, or null if the descriptor could not be determinedvoidSets 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
org.glassfish.hk2.api.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
-