21 lines
368 B
PHP
21 lines
368 B
PHP
<?php
|
|
|
|
|
|
/**
|
|
* @author : Arslan Hassan
|
|
*
|
|
* Making sense with error handling
|
|
*/
|
|
|
|
class DB_Exception
|
|
{
|
|
|
|
public function getError()
|
|
{
|
|
$errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
|
|
.': <b>'.$this->getMessage().'<br>While doing something with the database.';
|
|
return $errorMsg;
|
|
}
|
|
}
|
|
|
|
?>
|