文字

The RuntimeException class

(PHP 5 >= 5.1.0)

简介

Exception thrown if an error which can only be found on runtime occurs.

类摘要

RuntimeException extends Exception {
protected string $message ;
protected int $code ;
protected string $file ;
protected int $line ;
final public string Exception::getMessage ( void )
final public Exception Exception::getPrevious ( void )
final public int Exception::getCode ( void )
final public string Exception::getFile ( void )
final public int Exception::getLine ( void )
final public array Exception::getTrace ( void )
final public string Exception::getTraceAsString ( void )
public string Exception::__toString ( void )
final private void Exception::__clone ( void )
}

用户评论:

[#1] kelerest123 at gmail dot com [2015-02-12 19:29:42]

Whole exception-class hierarchy is shown at http://php.net/manual/en/spl.exceptions.php#spl.exceptions.tree

[#2] Dawid Krysiak [2011-02-03 02:31:13]

Direct known subclasses (following the java docs convention (: ):
OutOfBoundsException, OverflowException, RangeException, UnderflowException, UnexpectedValueException

上一篇: 下一篇: