Throw better Exceptions
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
if (trim(Config::$items['application']['key']) === '')
|
||||
{
|
||||
throw new \Exception('The cookie class may not be used without an application key.');
|
||||
throw new \LogicException('The cookie class may not be used without an application key.');
|
||||
}
|
||||
|
||||
class Cookie {
|
||||
@@ -128,4 +128,4 @@ class Cookie {
|
||||
return static::put($name, null, -2000);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user