diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-08 05:30:41 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-08 05:30:41 +0000 |
commit | 3bb9b9185cb9445157ab20df9178f9a892a0bbe0 (patch) | |
tree | 087c39dcdd314c010dc80fd94a5e4bfa76b0d9f4 /modules | |
parent | 36d1be4717c5d817ccafbed628a760c1126ba967 (diff) |
Standardize on a format for exceptions messages new Exception("@todo ERROR_MESSAGE");
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/libraries/Auth.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/auth/libraries/Auth.php b/modules/auth/libraries/Auth.php index 17cce3eb..c5afe92b 100644 --- a/modules/auth/libraries/Auth.php +++ b/modules/auth/libraries/Auth.php @@ -54,7 +54,7 @@ class Auth_Core implements Auth_Driver { $driver = "Auth_{$config['driver']}_Driver"; if (!Kohana::auto_load($driver)) { // @todo change to gallery specific exceptions - throw new Kohana_Exception("Specified Driver: '{$config['driver']}' has not been defined."); + throw new Exception("@todo DRIVER_NOT_DEFINED {$config['driver']}"); } // Load the driver @@ -62,8 +62,8 @@ class Auth_Core implements Auth_Driver { if (!($driver instanceof Auth_Driver)) { // @todo change to gallery specific exceptions - throw new Kohana_Exception( - "Specified Driver: '{$config['driver']}' has not implemented 'Auth_Driver'."); + throw new Exception( + "@todo Auth_Driver_INTERFACE_NOT_IMPLEMENTED: {$config['driver']}"); } $this->_driver = $driver; |