Class ErrorInformationImpl
- java.lang.Object
-
- org.glassfish.hk2.runlevel.internal.ErrorInformationImpl
-
- All Implemented Interfaces:
ErrorInformation
public class ErrorInformationImpl extends Object implements ErrorInformation
- Author:
- jwells
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.hk2.runlevel.ErrorInformation
ErrorInformation.ErrorAction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorInformation.ErrorAction
getAction()
Returns the action the system will takeThrowable
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 takeString
toString()
-
-
-
Method Detail
-
getError
public 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
-
-