SPL-StandardPHPLibrary
Public Member Functions | Protected Attributes | List of all members
DomainException Class Reference
Inheritance diagram for DomainException:
Inheritance graph
Collaboration diagram for DomainException:
Collaboration graph

Public Member Functions

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

Protected Attributes

 $code
 
 $file
 
 $line
 
 $message
 

Detailed Description

Exception that denotes a value not in the valid domain was used.

Since
PHP 5.1

This kind of exception should be used to inform about domain erors in mathematical sense.

See Also
RangeException

Definition at line 382 of file spl.php.

Member Function Documentation

Exception::__toString ( )
inherited
Returns
string representation of exception

Definition at line 341 of file spl.php.

References Exception\$string.

342  {
343  return $this->string;
344  }
$string
The string representations as generated during construction.
Definition: spl.php:264
Exception::getCode ( )
finalinherited
Returns
the code passed to the constructor

Definition at line 307 of file spl.php.

References Exception\$code.

308  {
309  return $this->code;
310  }
$code
The code passed to the constructor.
Definition: spl.php:267
Exception::getFile ( )
finalinherited
Returns
the name of the file where the exception was thrown

Definition at line 314 of file spl.php.

References Exception\$file.

315  {
316  return $this->file;
317  }
$file
The file name where the exception was instantiated.
Definition: spl.php:270
Exception::getLine ( )
finalinherited
Returns
the line number where the exception was thrown

Definition at line 321 of file spl.php.

References Exception\$line.

322  {
323  return $this->line;
324  }
$line
The line number where the exception was instantiated.
Definition: spl.php:273
Exception::getMessage ( )
finalinherited
Returns
the message passed to the constructor

Definition at line 300 of file spl.php.

References Exception\$message.

301  {
302  return $this->message;
303  }
$message
The exception message.
Definition: spl.php:261
Exception::getTrace ( )
finalinherited
Returns
the stack trace as array

Definition at line 328 of file spl.php.

References Exception\$trace.

329  {
330  return $this->trace;
331  }
$trace
The stack trace.
Definition: spl.php:276
Exception::getTraceAsString ( )
finalinherited
Returns
the stack trace as string

Definition at line 335 of file spl.php.

336  {
337  }

Member Data Documentation

Exception::$code
protectedinherited

The code passed to the constructor.

Definition at line 267 of file spl.php.

Referenced by Exception\__construct(), and Exception\getCode().

Exception::$file
protectedinherited

The file name where the exception was instantiated.

Definition at line 270 of file spl.php.

Referenced by Exception\getFile().

Exception::$line
protectedinherited

The line number where the exception was instantiated.

Definition at line 273 of file spl.php.

Referenced by Exception\getLine().

Exception::$message
protectedinherited

The exception message.

Definition at line 261 of file spl.php.

Referenced by Exception\__construct(), and Exception\getMessage().


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