fr.lri.swingstates.sm
Class StateNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by fr.lri.swingstates.sm.StateNotFoundException
All Implemented Interfaces:
java.io.Serializable

public class StateNotFoundException
extends java.lang.Exception

A StateNotFoundException exception is raised when attempting to retrieve a state that does not exist.

Author:
Caroline Appert
See Also:
Serialized Form

Constructor Summary
StateNotFoundException()
          Builds a StateNotFoundException exception.
StateNotFoundException(java.lang.String state)
          Builds a StateNotFoundException exception.
 
Method Summary
 java.lang.String getStateName()
          Returns the name of the state that is not found.
 void setStateName(java.lang.String stateName)
          Sets the name of the state that is not found.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateNotFoundException

public StateNotFoundException()
Builds a StateNotFoundException exception.


StateNotFoundException

public StateNotFoundException(java.lang.String state)
Builds a StateNotFoundException exception.

Parameters:
state - The name of the state that is not found.
Method Detail

getStateName

public java.lang.String getStateName()
Returns the name of the state that is not found.

Returns:
the name of the state that is not found.

setStateName

public void setStateName(java.lang.String stateName)
Sets the name of the state that is not found.

Parameters:
stateName - The name of the state.