// Import SPL stuff
use \BadMethodCallException;
use \LogicException;
+use \UnexpectedValueException;
/**
* A registry iterator
throw new BadMethodCallException(sprintf('this->key=%s is last key in this iteration. Forgot to invoke valid() before?', $this->key()), FrameworkInterface::EXCEPTION_BAD_METHOD_CALL);
} elseif ($registryType == 'invalid') {
// Not changed!
- throw new UnexpectedValueException('registryType has not been changed.');
+ throw new UnexpectedValueException('registryType has not been changed.', FrameworkInterface::EXCEPTION_UNEXPECTED_VALUE);
}
// Yes, then advance to that entry