From 3bb9b9185cb9445157ab20df9178f9a892a0bbe0 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 8 Nov 2008 05:30:41 +0000 Subject: Standardize on a format for exceptions messages new Exception("@todo ERROR_MESSAGE"); --- modules/auth/libraries/Auth.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') 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; -- cgit v1.2.3