function __construct($message, $code, $query_error = false) { if ($query_error) { $this->help .= " <pre>{$query_error}</pre>"; } parent::__construct($message, $code); }
function __construct($message, $code, $db_settings = array()) { if (!$db_settings) { $this->help .= "<p>You have no database configured</p>"; } else { $this->help .= "<pre>" . print_r($db_settings, 1) . "</pre>"; } $this->help .= "<p>Check that these settings are correctly configured and try again</p>"; parent::__construct($message, $code); }
function __construct($message) { return parent::__construct($message, "Database Error"); }