|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.clientcontroller.State | +--org.arch4j.clientcontroller.ErrorState
This class defines an error state. It will be instantiated solely by the
root StateMachine when an event handling operation throws a
StateMachineException
. The constructor expects as an argument
the root entry transition which allows the state machine to re-enter its
valid default state.
Constructor Summary | |
ErrorState(Transition anEntryTransition,
StateMachineException aStateMachineException)
Constructor that sets the only transition for this error state to be the one specified. |
Method Summary | |
void |
buildTransitionList()
Does nothing - defined only to satisfy the abstract superclass. |
void |
entryAction(StateContext context)
Perform the entry action for this state. |
void |
exitAction(StateContext context)
Perform the exit action for this state. |
String |
getStateName()
Retrieves the state name. |
Methods inherited from class org.arch4j.clientcontroller.State |
appendTransition, createEmbeddedStateMachine, createEmbeddedStateMachine, getEmbeddedStateMachine, getTransitionList |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ErrorState(Transition anEntryTransition, StateMachineException aStateMachineException)
Method Detail |
public String getStateName()
getStateName
in class State
public void entryAction(StateContext context) throws StateMachineException
entryAction
in class State
StateMachineException
- if there is any problem processing the request. This might include a missing
key-value, application server problems, failed domain validation, or
data access errors.public void exitAction(StateContext context) throws StateMachineException
exitAction
in class State
StateMachineException
- if there is any problem processing the request. This might include a missing
key-value, application server problems, failed domain validation, or
data access errors.public void buildTransitionList()
buildTransitionList
in class State
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |