Class ErrorInformationImpl
- java.lang.Object
-
- org.glassfish.hk2.runlevel.internal.ErrorInformationImpl
-
- All Implemented Interfaces:
ErrorInformation
public class ErrorInformationImpl extends java.lang.Object implements ErrorInformation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.hk2.runlevel.ErrorInformation
ErrorInformation.ErrorAction
-
-
Field Summary
Fields Modifier and Type Field Description private ErrorInformation.ErrorActionactionprivate Descriptordescriptorprivate java.lang.Throwableerror
-
Constructor Summary
Constructors Constructor Description ErrorInformationImpl(java.lang.Throwable error, ErrorInformation.ErrorAction action, Descriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorInformation.ErrorActiongetAction()Returns the action the system will takejava.lang.ThrowablegetError()Returns the throwable that caused the errorDescriptorgetFailedDescriptor()Returns the descriptor associated with this failure, or null if the descriptor could not be determinedvoidsetAction(ErrorInformation.ErrorAction action)Sets the action the system should takejava.lang.StringtoString()
-
-
-
Field Detail
-
error
private final java.lang.Throwable error
-
action
private ErrorInformation.ErrorAction action
-
descriptor
private final Descriptor descriptor
-
-
Constructor Detail
-
ErrorInformationImpl
ErrorInformationImpl(java.lang.Throwable error, ErrorInformation.ErrorAction action, Descriptor descriptor)
-
-
Method Detail
-
getError
public java.lang.Throwable getError()
Description copied from interface:ErrorInformationReturns the throwable that caused the error- Specified by:
getErrorin interfaceErrorInformation- Returns:
- The non-null throwable that caused the error to occur
-
getAction
public ErrorInformation.ErrorAction getAction()
Description copied from interface:ErrorInformationReturns the action the system will take- Specified by:
getActionin 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:ErrorInformationSets the action the system should take- Specified by:
setActionin interfaceErrorInformation- Parameters:
action- The action the system will take once the onError method has returned
-
getFailedDescriptor
public Descriptor getFailedDescriptor()
Description copied from interface:ErrorInformationReturns the descriptor associated with this failure, or null if the descriptor could not be determined- Specified by:
getFailedDescriptorin interfaceErrorInformation- Returns:
- The failed descriptor, or null if the descriptor could not be determined
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-