文字
分享

The OutOfBoundsException class

(PHP 5 >= 5.1.0)

简介

Exception thrown if a value is not a valid key. This represents errors that cannot be detected at compile time.

类摘要

OutOfBoundsException extends RuntimeException {
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] Jacob V. Rasmussen [2015-08-11 08:49:08]

OutOfRangeException is for Integers out of range.
OutOfBoundsException is for key values, not found in the target array.

[#2] Anonymous [2014-11-10 03:29:07]

i wish i know what's the difference between 
OutOfRangeException and OutOfBoundsException lol

上一篇:LogicException下一篇:OutOfRangeException