public function HTTPReturnCodeException($message = "", $code = 0, $previous = NULL, $logLevel = false) { if ($code) { $this->httpReturnCode = $code; } parent::__construct($message, (int) $code, $previous, $logLevel); }
public function __construct($mes = '', $hiddenmes = '', $dblink) { clearstatcache(); if (is_writable(DATA_DIR) == false) { $mes = 'DATA_DIR is not writable. Please change DATA_DIR permission writable.' . $mes; } else { if (is_writable(DATA_DIR . WIKIID . '.db') == false) { $mes = 'Database file is not writable. Please change database permssion writable.' . $mes; } } $error_infos = $dblink->errorInfo(); parent::__construct($mes, linetrim($hiddenmes . "\n") . "\n" . $error_infos[2]); }
public function __construct($error, $e) { parent::__construct('Unable to connect to database', $e); parent::setExtraHTML('<strong>Error Message: </strong> ' . $error); }
public function __construct($query, $e) { $this->query = $query; parent::__construct('SQL Query Error', $e); parent::setExtraHTML($this->getHTML()); }
public function __construct($mes = '', $hiddenmes = '', $dblink) { clearstatcache(); if (is_writable(DATA_DIR) == false) { $mes = 'DATA_DIRへの書き込み権限がありません。' . $mes; } else { if (is_writable(DATA_DIR . WIKIID . '.db') == false) { $mes = 'DBファイルへの書き込み権限がありません。' . $mes; } } parent::__construct($mes, linetrim($hiddenmes . "\n") . sqlite_error_string(sqlite_last_error($dblink))); }