BadMethodCallException Class Reference
[Internal classes]

Exception thrown when a method call was illegal. More...

Inheritance diagram for BadMethodCallException:

Inheritance graph
{BadFunctionCallException\n||}{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 BadMethodCallException:

Collaboration graph
{BadFunctionCallException\n||}{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 method call was illegal.

Since:
PHP 5.1

Definition at line 355 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:05:06 2007 for SPL-StandardPHPLibrary by  doxygen 1.5.2