/**
* "Loads" a given state and instances it if not yet cached. If the
- * state was not found an InvalidStateException is thrown
+ * state was not found an UnresolveableStateException is thrown
*
* @param $stateName A state name we shall look for
* @return $stateInstance A loaded state instance
- * @throws InvalidStateException Thrown if even the requested
- * state class is missing (bad!)
+ * @throws UnresolveableStateException Thrown if even the requested
+ * state class is missing (bad!)
*/
protected function loadState ($stateName) {
// Init state instance
// Is this class loaded?
if (!class_exists($this->getClassName())) {
// Throw an exception here
- throw new InvalidStateException(array($this, $stateName), self::EXCEPTION_INVALID_STATE);
+ throw new UnresolveableStateException(array($this, $stateName), self::EXCEPTION_INVALID_STATE);
} // END - if
// Initialize the state