SPL-StandardPHPLibrary
Public Member Functions | Protected Attributes
LengthException Class Reference
Inheritance diagram for LengthException:
Inheritance graph
[legend]
Collaboration diagram for LengthException:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 __toString ()
 getCode ()
 getFile ()
 getLine ()
 getMessage ()
 getTrace ()
 getTraceAsString ()

Protected Attributes

 $code
 $file
 $line
 $message

Detailed Description

Exception thrown when a parameter exceeds the allowed length.

Since:
PHP 5.1

This can be used for strings length, array size, file size, number of elements read from an Iterator and so on.

Definition at line 403 of file spl.php.


Member Function Documentation

Exception::__toString ( ) [inherited]
Returns:
string represenation of exception

Definition at line 341 of file spl.php.

    {
        return $this->string;
    }
Exception::getCode ( ) [final, inherited]
Returns:
the code passed to the constructor

Definition at line 307 of file spl.php.

    {
        return $this->code;
    }
Exception::getFile ( ) [final, inherited]
Returns:
the name of the file where the exception was thrown

Definition at line 314 of file spl.php.

    {
        return $this->file;
    }
Exception::getLine ( ) [final, inherited]
Returns:
the line number where the exception was thrown

Definition at line 321 of file spl.php.

    {
        return $this->line;
    }
Exception::getMessage ( ) [final, inherited]
Returns:
the message passed to the constructor

Definition at line 300 of file spl.php.

    {
        return $this->message;
    }
Exception::getTrace ( ) [final, inherited]
Returns:
the stack trace as array

Definition at line 328 of file spl.php.

    {
        return $this->trace;
    }
Exception::getTraceAsString ( ) [final, inherited]
Returns:
the stack trace as string

Definition at line 335 of file spl.php.

    {
    }

Member Data Documentation

Exception::$code [protected, inherited]

The code passed to the constructor.

Definition at line 267 of file spl.php.

Referenced by Exception\__construct().

Exception::$file [protected, inherited]

The file name where the exception was instantiated.

Definition at line 270 of file spl.php.

Exception::$line [protected, inherited]

The line number where the exception was instantiated.

Definition at line 273 of file spl.php.

Exception::$message [protected, inherited]

The exception message.

Definition at line 261 of file spl.php.

Referenced by Exception\__construct().


The documentation for this class was generated from the following file: