
Added : Database class Added : DB and CB Exception for better data handling Added : Smarty v3 Source
21 lines
No EOL
337 B
PHP
21 lines
No EOL
337 B
PHP
<?php
|
|
|
|
|
|
/**
|
|
* @author : Arslan Hassan
|
|
*
|
|
* Making sense with error handling
|
|
*/
|
|
|
|
class CB_Exception extends Exception
|
|
{
|
|
|
|
public function getError()
|
|
{
|
|
$errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
|
|
.': <b>'.$this->getMessage();
|
|
return $errorMsg;
|
|
}
|
|
}
|
|
|
|
?>
|