test Exceptions

This commit is contained in:
norb 2021-01-14 13:53:02 +01:00
commit 81c9247571
3 changed files with 16 additions and 1 deletions

View file

@ -314,7 +314,7 @@ class Settings implements \Iterator
{
if ( !isset( $this->settings[$name] ) )
{
throw new \Exception("Setting '$name' not found");
throw new \OutOfRangeException("Setting '$name' not found");
// todo: throw new SettingNotFoundException();
}