* is every other state.
*
* @return void
- * @throws InvalidStateException If the state is not 'virgin'
+ * @throws UnexpectedStateException If the state is not 'virgin'
*/
public function validateDhtStateIsVirginOrInit () {
// Just compare it...
if ((!$this instanceof DhtVirginState) && (!$this instanceof DhtInitState)) {
// Throw the exception
- throw new InvalidStateException($this, self::EXCEPTION_INVALID_STATE);
+ throw new UnexpectedStateException($this, self::EXCEPTION_INVALID_STATE);
} // END - if
}