21 lines
337 B
PHP
21 lines
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;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|