事前定義異常-PHPマニュアルノート
1280 ワード
原文:
事前定義異常-PHPマニュアルノート
(全文完了)
事前定義異常-PHPマニュアルノート
Exception
はすべての異常のベースクラスであり、クラスの要約は以下の通りである.<?php
class Exception {
protected string $message; //
protected int $code; //
protected string $file; //
protected int $line; //
public __construct([string $message = "" [, int $code = 0 [, Exception $previous = NULL]]])
final public string getMessage(void)
final public Exception getPrevious(void)
final public int getCode(void)
final public string getFile(void)
final public int getLine(void)
final public array getTrace(void)
final public string getTraceAsString(void)
public string __toString(void)
final private void __clone(void)
}
ErrorException
はエラー異常で、クラスの要約は以下の通りです.<?php
class ErrorException extends Exception {
protected int $severity; //
public __construct([string $message = "" [, int $code = 0 [, int $severity = 1 [, string $filename = __FILE__ [, int $lineno = __LINE__ [, Exception $previous = NULL]]]]]])
final public int getSeverity(void)
}
(全文完了)