- Timestamp:
- 2013/08/24 23:33:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/helper/SC_Helper_HandleError.php
r22926 r23124 37 37 * @return void 38 38 */ 39 static function load()39 public static function load() 40 40 { 41 41 // E_DEPRECATED 定数 (for PHP < 5.3) … … 76 76 * (エラー画面・エラー文言は表示させない。) 77 77 * 78 * @param integer $errnoエラーコード79 * @param string $errstrエラーメッセージ80 * @param string$errfile エラーが発生したファイル名81 * @param integer$errline エラーが発生した行番号78 * @param integer $errno エラーコード 79 * @param string $errstr エラーメッセージ 80 * @param string $errfile エラーが発生したファイル名 81 * @param integer $errline エラーが発生した行番号 82 82 * @return void|boolean E_USER_ERROR が発生した場合は, エラーページへリダイレクト; 83 83 * E_WARNING, E_USER_WARNING が発生した場合、true を返す 84 84 */ 85 static function handle_warning($errno, $errstr, $errfile, $errline)85 public static function handle_warning($errno, $errstr, $errfile, $errline) 86 86 { 87 87 // error_reporting 設定に含まれていないエラーコードは処理しない … … 107 107 $message = "Warning($error_type_name): $errstr on [$errfile($errline)]"; 108 108 GC_Utils_Ex::gfPrintLog($message, ERROR_LOG_REALFILE); 109 109 110 return true; 110 111 … … 123 124 * エラーページへリダイレクトする. 124 125 * 125 * @param string$buffer 出力バッファリングの内容126 * @param string $buffer 出力バッファリングの内容 126 127 * @return string|void エラーが捕捉された場合は, エラーページへリダイレクトする; 127 128 * エラーが捕捉されない場合は, 出力バッファリングの内容を返す … … 153 154 * @return void 154 155 */ 155 static function handle_error()156 public static function handle_error() 156 157 { 157 158 // 最後のエラーを確実に捉えるため、先頭で呼び出す。 … … 188 189 * エラー画面を表示する 189 190 * 190 * @param string|null $errstr エラーメッセージ191 * @param string|null $errstr エラーメッセージ 191 192 * @return void 192 193 */ 193 static function displaySystemError($errstr = null)194 public static function displaySystemError($errstr = null) 194 195 { 195 196 ob_clean();
Note: See TracChangeset
for help on using the changeset viewer.
