LengthException Class Reference
[Internal classes]

Exception thrown when a parameter exceeds the allowed length. More...

Inheritance diagram for LengthException:

Inheritance graph
{LogicException\n||}{Exception\n|# $code\l# $file\l# $line\l# $message\l- $string\l- $trace\l|+ __construct()\l+ __toString()\l+ getCode()\l+ getFile()\l+ getLine()\l+ getMessage()\l+ getTrace()\l+ getTraceAsString()\l- __clone()\l}
[legend]
Collaboration diagram for LengthException:

Collaboration graph
{LogicException\n||}{Exception\n|# $code\l# $file\l# $line\l# $message\l- $string\l- $trace\l|+ __construct()\l+ __toString()\l+ getCode()\l+ getFile()\l+ getLine()\l+ getMessage()\l+ getTrace()\l+ getTraceAsString()\l- __clone()\l}
[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 389 of file spl.php.


Member Function Documentation

Exception::__toString (  )  [inherited]

Returns:
string represenation of exception

Definition at line 327 of file spl.php.

00328     {
00329         return $this->string;
00330     }

Exception::getCode (  )  [final, inherited]

Returns:
the code passed to the constructor

Definition at line 293 of file spl.php.

00294     {
00295         return $this->code;
00296     }

Exception::getFile (  )  [final, inherited]

Returns:
the name of the file where the exception was thrown

Definition at line 300 of file spl.php.

00301     {
00302         return $this->file;
00303     }

Exception::getLine (  )  [final, inherited]

Returns:
the line number where the exception was thrown

Definition at line 307 of file spl.php.

00308     {
00309         return $this->line;
00310     }

Exception::getMessage (  )  [final, inherited]

Returns:
the message passed to the constructor

Definition at line 286 of file spl.php.

00287     {
00288         return $this->message;
00289     }

Exception::getTrace (  )  [final, inherited]

Returns:
the stack trace as array

Definition at line 314 of file spl.php.

00315     {
00316         return $this->trace;
00317     }

Exception::getTraceAsString (  )  [final, inherited]

Returns:
the stack trace as string

Definition at line 321 of file spl.php.

00322     {
00323     }


Member Data Documentation

Exception::$code [protected, inherited]

The code passed to the constructor.

Definition at line 253 of file spl.php.

Referenced by Exception::__construct().

Exception::$file [protected, inherited]

The file name where the exception was instantiated.

Definition at line 256 of file spl.php.

Exception::$line [protected, inherited]

The line number where the exception was instantiated.

Definition at line 259 of file spl.php.

Exception::$message [protected, inherited]

The exception message.

Definition at line 247 of file spl.php.

Referenced by Exception::__construct().


The documentation for this class was generated from the following file:
Generated on Thu Apr 26 01:06:18 2007 for SPL-StandardPHPLibrary by  doxygen 1.5.2