Package org.glassfish.hk2.runlevel
Interface ErrorInformation
-
- All Known Implementing Classes:
ErrorInformationImpl
public interface ErrorInformation
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ErrorInformation.ErrorAction
The set of actions that the system can perform when an error is detected
-
Method Summary
All Methods Instance Methods Abstract 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 take
-
-
-
Method Detail
-
getError
java.lang.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
void setAction(ErrorInformation.ErrorAction action)
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
-
-