net.openai.util.fsm
Class UnhandledConditionException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--net.openai.util.fsm.UnhandledConditionException
All Implemented Interfaces:
java.io.Serializable

public final class UnhandledConditionException
extends java.lang.Exception

An Exception for when a Condition is not satisfied by the input into the Machine. In terms of natural languages, this is thrown when a sentence is invalid for the verifying machine.

See Also:
Serialized Form

Constructor Summary
UnhandledConditionException(State state, java.lang.Object condition)
          Constructs a new UnhandledConditionException
 
Method Summary
 java.lang.Object getCondition()
          Returns a handle to the source condition object.
 State getState()
          Returns a handle to the source State.
 java.lang.String toString()
          Returns a String represention of this object.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnhandledConditionException

public UnhandledConditionException(State state,
                                   java.lang.Object condition)
Constructs a new UnhandledConditionException

Parameters:
state - The State that failed to have a matching Condition.
condition - The input object that failed to match any of the Conditions.
Method Detail

getState

public final State getState()
Returns a handle to the source State.

Returns:
The State that failed to have a matching Condition.

getCondition

public final java.lang.Object getCondition()
Returns a handle to the source condition object.

Returns:
The object that failed to match any of the Conditions.

toString

public final java.lang.String toString()
Returns a String represention of this object.

Overrides:
toString in class java.lang.Throwable
Returns:
The String representation of this object.


Copyright - 2001 OpenAI Labs. All Rights Reserved.