2013-11-08 20:52:38 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author : Arslan Hassan
|
|
|
|
*
|
|
|
|
* Making sense with error handling
|
|
|
|
*/
|
|
|
|
|
2016-07-24 17:19:21 -04:00
|
|
|
class DB_Exception
|
2013-11-08 20:52:38 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
public function getError()
|
|
|
|
{
|
|
|
|
$errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
|
|
|
|
.': <b>'.$this->getMessage().'<br>While doing something with the database.';
|
|
|
|
return $errorMsg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-24 17:19:21 -04:00
|
|
|
?>
|