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)}
(全文完)
新聞熱點
疑難解答