public class StateNotFoundException
extends java.lang.Exception
StateNotFoundException
exception is raised
when attempting to retrieve a state that does not exist.Constructor and Description |
---|
StateNotFoundException()
Builds a
StateNotFoundException exception. |
StateNotFoundException(java.lang.String state)
Builds a
StateNotFoundException exception. |
Modifier and Type | Method and Description |
---|---|
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.
|
public StateNotFoundException()
StateNotFoundException
exception.public StateNotFoundException(java.lang.String state)
StateNotFoundException
exception.state
- The name of the state that is not found.public java.lang.String getStateName()
public void setStateName(java.lang.String stateName)
stateName
- The name of the state.