Top Inners Methods
org.glassfish.hk2.runlevel

public Interface ErrorInformation

Known Direct Implementers
org.glassfish.hk2.runlevel.internal.ErrorInformationImpl
Imports
org.glassfish.hk2.api.Descriptor

Author
jwells

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
ErrorInformation.ErrorAction

The set of actions that the system can perform when an error is detected

Method Summary

Modifier and TypeMethod and Description
public ErrorInformation.ErrorAction

Returns:

The action the system will take once the onError method has returned
getAction
()

Returns the action the system will take

public Throwable

Returns:

The non-null throwable that caused the error to occur
getError
()

Returns the throwable that caused the error

public Descriptor

Returns:

The failed descriptor, or null if the descriptor could not be determined
getFailedDescriptor
()

Returns the descriptor associated with this failure, or null if the descriptor could not be determined

public void
setAction(ErrorInformation.ErrorAction
The action the system will take once the onError method has returned
action
)

Sets the action the system should take

Method Detail

getActionback to summary
public ErrorInformation.ErrorAction getAction()

Returns the action the system will take

Returns:ErrorInformation.ErrorAction

The action the system will take once the onError method has returned

getErrorback to summary
public Throwable getError()

Returns the throwable that caused the error

Returns:Throwable

The non-null throwable that caused the error to occur

getFailedDescriptorback to summary
public Descriptor getFailedDescriptor()

Returns the descriptor associated with this failure, or null if the descriptor could not be determined

Returns:Descriptor

The failed descriptor, or null if the descriptor could not be determined

setActionback to summary
public void setAction(ErrorInformation.ErrorAction action)

Sets the action the system should take

Parameters
action:ErrorInformation.ErrorAction

The action the system will take once the onError method has returned

org.glassfish.hk2.runlevel back to summary

public final Enum ErrorInformation.ErrorAction

extends Enum<ErrorInformation.ErrorAction>
Class Inheritance

The set of actions that the system can perform when an error is detected
Author
jwells

Field Summary

Modifier and TypeField and Description
public static final ErrorInformation.ErrorAction
GO_TO_NEXT_LOWER_LEVEL_AND_STOP

Tells the RunLevelController to halt progress in the level and proceed to the next lowest level and stop the proceeding at that level.

public static final ErrorInformation.ErrorAction
IGNORE

Tells the RunLevelController to disregard the error and continue its progress as if the error never happened.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ErrorInformation.ErrorAction
public static ErrorInformation.ErrorAction[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

GO_TO_NEXT_LOWER_LEVEL_AND_STOPback to summary
public static final ErrorInformation.ErrorAction GO_TO_NEXT_LOWER_LEVEL_AND_STOP

Tells the RunLevelController to halt progress in the level and proceed to the next lowest level and stop the proceeding at that level. This is the default action when an error is encountered while the system is proceeding upward. The error (or errors) will be thrown by the RunLevelFuture

IGNOREback to summary
public static final ErrorInformation.ErrorAction IGNORE

Tells the RunLevelController to disregard the error and continue its progress as if the error never happened. This is the default action when an error is encountered while the system is proceeding downward. The error (or errors) will NOT be thrown by the RunLevelFuture

Constructor Detail

ErrorActionback to summary
private ErrorAction()

Method Detail

valueOfback to summary
public static ErrorInformation.ErrorAction valueOf(String name)
valuesback to summary
public static ErrorInformation.ErrorAction[] values()