function __construct($connect_string, $extra = '')
 {
     $message = 'Couldnt connect to "' . $connect_string . '"';
     if ($extra) {
         $message .= '. ' . $extra;
     }
     parent::__construct($message);
 }
Beispiel #2
0
 public function __construct($message, $code = 0, $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
Beispiel #3
0
 function __construct($query, $pglink)
 {
     $this->_query = $query;
     $this->_errmsg = pg_errormessage($pglink);
     parent::__construct("Database-Error {$this->_errmsg} on query {$query}");
 }
 public function __construct($message, $code = 0, Exception $previous = null)
 {
     // some code
     // make sure everything is assigned properly
     parent::__construct($message, $code, $previous);
 }
 public function __construct($message = 'An error occured attempting to connect to the database', $code = 0, \Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
Beispiel #6
0
 /**
  * Creates a new fetch statement exception.
  * @param $function string The function name.
  */
 public function __construct($function)
 {
     parent::__construct('fetch', $function);
 }
 /**
  * @param string $message = 'Requested dataset was not found!'
  * @param int $code = 404
  * @param \Exception|null $previous = null
  */
 public function __construct($message = 'Requested dataset was not found!', $code = 404, \Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
 function __construct($sql)
 {
     parent::__construct('Query "' . $sql . '" timed out.');
 }
 public function __construct($message = 'An error occured executing a database query', $code = 0, \Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
 public function __construct($message = null, $code = null)
 {
     parent::__construct($message);
     $this->code = $code;
 }
Beispiel #11
0
 function __construct($sql, $error = 'Unknown')
 {
     parent::__construct('Error executing "' . substr($sql, 0, 75) . '", Error: ' . $error);
     $this->error = $error;
 }
Beispiel #12
0
 function __construct($message = 'Error fetching data from Database')
 {
     parent::__construct($message);
 }
 public function __construct($message = 'The specified database configuration is invalid', $code = 0, \Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
 /**
  * @param string $message
  * @param number $code
  * @param Exception $previous
  */
 function __construct($message = null, $code = 0, Exception $previous = null)
 {
     parent::__construct('undefined exception: ' . $message, $code, $previous);
 }
 /**
  * @param string $message
  * @param number $code
  * @param Exception $previous
  */
 function __construct($message = null, $code = 0, Exception $previous = null)
 {
     parent::__construct('unknown database exception: ' . $message, $code, $previous);
 }
 public function __construct($message = 'The database is not connected', $code = 0, \Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
 /**
  * @param string $statement
  * @param number $code
  * @param Exception $previous
  */
 function __construct($statement = null, $code = 0, Exception $previous = null)
 {
     parent::__construct('invalid SQL statement: ' . $statement, $code, $previous);
 }