test Exceptions
This commit is contained in:
parent
f18ea38350
commit
81c9247571
3 changed files with 16 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue