clipbucket/upload/includes/classes/exceptions/db_exception.php
Eric Hocking e146c13760 Fix Can't extend error on php 7
This fixes the can't extend error on php 7.
2016-07-24 17:19:21 -04:00

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;
}
}
?>