Inheritance diagram for Exception:

Public Member Functions | |
| __construct ($message=NULL, $code=0) | |
| __toString () | |
| getCode () | |
| getFile () | |
| getLine () | |
| getMessage () | |
| getTrace () | |
| getTraceAsString () | |
Protected Attributes | |
| $code | |
| $file | |
| $line | |
| $message | |
Private Member Functions | |
| __clone () | |
Private Attributes | |
| $string | |
| $trace | |
Definition at line 244 of file spl.php.
| Exception::__construct | ( | $ | message = NULL, |
|
| $ | code = 0 | |||
| ) |
Construct an exception.
| $message | Some text describing the exception | |
| $code | Some code describing the exception |
Definition at line 273 of file spl.php.
References $code, and $message.
00273 { 00274 if (func_num_args()) { 00275 $this->message = $message; 00276 } 00277 $this->code = $code; 00278 $this->file = __FILE__; // of throw clause 00279 $this->line = __LINE__; // of throw clause 00280 $this->trace = debug_backtrace(); 00281 $this->string = StringFormat($this); 00282 }
| Exception::__clone | ( | ) | [final, private] |
| Exception::__toString | ( | ) |
| Exception::getCode | ( | ) | [final] |
| Exception::getFile | ( | ) | [final] |
| Exception::getLine | ( | ) | [final] |
| Exception::getMessage | ( | ) | [final] |
| Exception::getTrace | ( | ) | [final] |
| Exception::getTraceAsString | ( | ) | [final] |
Exception::$code [protected] |
The code passed to the constructor.
Definition at line 253 of file spl.php.
Referenced by __construct().
Exception::$file [protected] |
Exception::$line [protected] |
Exception::$message [protected] |
Exception::$string [private] |
1.5.2