/** * Constructor * * @param string message * @param string sql default NULL the SQL query string sent * @param int errorcode default -1 */ public function __construct($message, $sql = NULL, $errorcode = -1) { parent::__construct($message); $this->sql = $sql; $this->errorcode = $errorcode; }
/** * Create a new SQLDuplicateKeyException to be thrown by the database module for a duplicate key. * * @param string $message - A message to describe the exception * @param Exception $previous - The previous exception thrown * @return DB_Exception object */ public function __construct($message, $code = -1, Exception $previous = null) { parent::__construct($message, $code, $previous); }
/** * Constructor * * @param string message * @param rdbms.DSN dsn */ public function __construct($message, $dsn) { parent::__construct($message); $this->dsn = $dsn; }
public function __construct($err, $errnum) { parent::__construct($err, $errnum); $this->message = "Kunne ikke utføre spørring: ({$errnum}) {$err}"; }