Changeset 2667 for trunk/system/libraries
- Timestamp:
- 05/13/08 02:23:53 (4 months ago)
- Location:
- trunk/system/libraries
- Files:
-
- 6 modified
-
Archive.php (modified) (2 diffs)
-
Cache.php (modified) (2 diffs)
-
Database.php (modified) (2 diffs)
-
Image.php (modified) (1 diff)
-
Payment.php (modified) (2 diffs)
-
Session.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Archive.php
r2016 r2667 34 34 // Load the driver 35 35 if ( ! Kohana::auto_load($driver)) 36 throw new Kohana_Exception(' archive.driver_not_supported', $type);36 throw new Kohana_Exception('core.driver_not_found', $type, get_class($this)); 37 37 38 38 // Initialize the driver … … 41 41 // Validate the driver 42 42 if ( ! ($this->driver instanceof Archive_Driver)) 43 throw new Kohana_Exception(' archive.driver_implements', $type);43 throw new Kohana_Exception('core.driver_implements', $type, get_class($this), 'Archive_Driver'); 44 44 45 45 Log::add('debug', 'Archive Library initialized'); -
trunk/system/libraries/Cache.php
r2593 r2667 69 69 // Load the driver 70 70 if ( ! Kohana::auto_load($driver)) 71 throw new Kohana_Exception('c ache.driver_not_supported', $this->config['driver']);71 throw new Kohana_Exception('core.driver_not_found', $this->config['driver'], get_class($this)); 72 72 73 73 // Initialize the driver … … 76 76 // Validate the driver 77 77 if ( ! ($this->driver instanceof Cache_Driver)) 78 throw new Kohana_Exception('c ache.driver_implements', $this->config['driver']);78 throw new Kohana_Exception('core.driver_implements', $this->config['driver'], get_class($this), 'Cache_Driver'); 79 79 80 80 Log::add('debug', 'Cache Library initialized'); -
trunk/system/libraries/Database.php
r2593 r2667 179 179 // Load the driver 180 180 if ( ! Kohana::auto_load($driver)) 181 throw new Kohana_Database_Exception(' database.driver_not_supported', $this->config['connection']['type']);181 throw new Kohana_Database_Exception('core.driver_not_found', $this->config['connection']['type'], get_class($this)); 182 182 183 183 // Initialize the driver … … 186 186 // Validate the driver 187 187 if ( ! ($this->driver instanceof Database_Driver)) 188 throw new Kohana_Database_Exception(' database.driver_not_supported', 'Database drivers must use the Database_Driver interface.');188 throw new Kohana_Database_Exception('core.driver_implements', $this->config['connection']['type'], get_class($this), 'Database_Driver'); 189 189 190 190 Log::add('debug', 'Database Library initialized'); -
trunk/system/libraries/Image.php
r2593 r2667 111 111 // Load the driver 112 112 if ( ! Kohana::auto_load($driver)) 113 throw new Kohana_Exception(' image.driver_not_supported', $this->config['driver']);113 throw new Kohana_Exception('core.driver_not_found', $this->config['driver'], get_class($this)); 114 114 115 115 // Initialize the driver 116 116 $this->driver = new $driver($this->config['params']); 117 117 118 // Validate the driver 118 119 if ( ! ($this->driver instanceof Image_Driver)) 119 throw new Kohana_Exception(' image.invalid_driver', $driver);120 throw new Kohana_Exception('core.driver_implements', $this->config['driver'], get_class($this), 'Image_Driver'); 120 121 } 121 122 -
trunk/system/libraries/Payment.php
r2209 r2667 75 75 // Load the driver 76 76 if ( ! Kohana::auto_load($driver)) 77 throw new Kohana_Exception(' payment.driver_not_supported', $this->config['driver']);77 throw new Kohana_Exception('core.driver_not_found', $this->config['driver'], get_class($this)); 78 78 79 79 // Get the driver specific settings … … 85 85 // Validate the driver 86 86 if ( ! ($this->driver instanceof Payment_Driver)) 87 throw new Kohana_Exception(' payment.driver_implements', $this->config['driver']);87 throw new Kohana_Exception('core.driver_implements', $this->config['driver'], get_class($this), 'Payment_Driver'); 88 88 } 89 89 -
trunk/system/libraries/Session.php
r2649 r2667 62 62 // Load the driver 63 63 if ( ! Kohana::auto_load($driver)) 64 throw new Kohana_Exception(' session.driver_not_supported', self::$config['driver']);64 throw new Kohana_Exception('core.driver_not_found', self::$config['driver'], get_class($this)); 65 65 66 66 // Initialize the driver … … 69 69 // Validate the driver 70 70 if ( ! (self::$driver instanceof Session_Driver)) 71 throw new Kohana_Exception(' session.driver_implements', self::$config['driver']);71 throw new Kohana_Exception('core.driver_implements', self::$config['driver'], get_class($this), 'Session_Driver'); 72 72 73 73 // Register non-native driver as the session handler
