com.bankframe.fe.statemachine.base
Class StateMachineException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.bankframe.fe.statemachine.base.StateMachineException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ControllerNotFoundException, StateMachineUserException, ViewNotFoundException, XmlApplicationLoaderException

public class StateMachineException
extends java.lang.Exception

See Also:
Serialized Form

Field Summary
static java.lang.String INVALID_EVENT
          This constant is used when the event in an incoming request cannot be found on the statechart.
static java.lang.String INVALID_RESULT_STATE
          This constant is used when the statemachine cannot go to the indicated result state for some reason.
static java.lang.String INVALID_RESULT_STATE_TRANSITION
          This constant is used when a controller returns a state transition that is not available from the event being processed.
static java.lang.String INVALID_STATE
          This constant is used when the event in an incoming request does not come from the last known state.
static java.lang.String INVALID_TRANSITION_ENTRYCONDITION
          This constant is used when a stateTransition returns a value from getEntryCondition that is not one of the three allowed values.
static java.lang.String INVALID_USER_SESSION_EVENT
          This constant is used when an event rejects a user session due to incorrect authorisaion.
static java.lang.String INVALID_USER_SESSION_STATE
          This constant is used when a state rejects a user session due to incorrect authorisation.
static java.lang.String NO_EVENT
          This constant is used when no event can be read from an incoming request.
 
Constructor Summary
StateMachineException()
          Creates a new StateMachineException.
StateMachineException(java.lang.Exception originalException)
          Creates a new StateMachineException including the given original exception.
StateMachineException(java.lang.String msg)
          Creates a new StateMachineException with the given message.
 
Method Summary
 java.lang.String getJsmExceptionMessage()
           
 java.lang.Exception getOriginalException()
          Returns the original exception, if available.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream out)
           
 void setJsmExceptionMessage(java.lang.String message)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INVALID_USER_SESSION_STATE

public static java.lang.String INVALID_USER_SESSION_STATE
This constant is used when a state rejects a user session due to incorrect authorisation.
Its value is: "State rejected userSession"


INVALID_USER_SESSION_EVENT

public static java.lang.String INVALID_USER_SESSION_EVENT
This constant is used when an event rejects a user session due to incorrect authorisaion.
Its value is: "Event rejected userSession"


NO_EVENT

public static java.lang.String NO_EVENT
This constant is used when no event can be read from an incoming request.
Its value is: "No event"


INVALID_STATE

public static java.lang.String INVALID_STATE
This constant is used when the event in an incoming request does not come from the last known state.
Its value is: "Invalid state"


INVALID_EVENT

public static java.lang.String INVALID_EVENT
This constant is used when the event in an incoming request cannot be found on the statechart.
Its value is: "Invalid event"


INVALID_RESULT_STATE_TRANSITION

public static java.lang.String INVALID_RESULT_STATE_TRANSITION
This constant is used when a controller returns a state transition that is not available from the event being processed.
Its value is: "Invalid result state transition"


INVALID_RESULT_STATE

public static java.lang.String INVALID_RESULT_STATE
This constant is used when the statemachine cannot go to the indicated result state for some reason. (eg. because it breaks a unit of work boundary.)
Its value is: "Invalid result state"


INVALID_TRANSITION_ENTRYCONDITION

public static java.lang.String INVALID_TRANSITION_ENTRYCONDITION
This constant is used when a stateTransition returns a value from getEntryCondition that is not one of the three allowed values.
Its value is: "Invalid transition entryCondition"

Constructor Detail

StateMachineException

public StateMachineException()
Creates a new StateMachineException.


StateMachineException

public StateMachineException(java.lang.String msg)
Creates a new StateMachineException with the given message.

Parameters:
msg - the exception message

StateMachineException

public StateMachineException(java.lang.Exception originalException)
Creates a new StateMachineException including the given original exception.

Parameters:
originalException - the original exception thrown
Method Detail

getOriginalException

public java.lang.Exception getOriginalException()
Returns the original exception, if available.

Returns:
exception.

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream out)

getJsmExceptionMessage

public java.lang.String getJsmExceptionMessage()

setJsmExceptionMessage

public void setJsmExceptionMessage(java.lang.String message)


Copyright © 2004 Siebel Systems, Inc. All rights reserved.