clipbucket/upload/includes/classes/exceptions/db_exception.php
Arslan Hassan 10500acfd3 Added : Mysqli Support // Removed Stric standards.
Added : Database class
Added : DB and CB Exception for better data handling
Added : Smarty v3 Source
2013-11-08 20:52:38 +00:00

21 lines
No EOL
395 B
PHP

<?php
/**
* @author : Arslan Hassan
*
* Making sense with error handling
*/
class DB_Exception extends mysqli_sql_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;
}
}
?>