|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
An exception thrown whenever PHP raises a notice, warning, etc. More...
Inheritance diagram for Erebot\ErrorReportingException:Public Member Functions | |
| __construct ($message, $code, $filename, $lineno) | |
| __toString () | |
Static Protected Attributes | |
| static | $map = null |
| A mapping of PHP's error levels' names to their numeric value. | |
An exception thrown whenever PHP raises a notice, warning, etc.
This is an implementation of a custom exception which turns all PHP messages (errors, warnings, notices, etc.) into exceptions. We use this exception instead of PHP's ErrorException because the latter is buggy under PHP 5.2, which might be a target version for Erebot at some time. Original implementation proposed by luke at cywh dot com: http://php.net/manual/en/class.errorexception.php#89132
Definition at line 35 of file ErrorReportingException.php.
| Erebot\ErrorReportingException::__construct | ( | $message, | |
| $code, | |||
| $filename, | |||
| $lineno | |||
| ) |
Constructs a new exception from a PHP error/warning/notice.
| string | $message | The error/warning/notice message. |
| int | $code | A code indicating whether this exception was created from an error, a warning or a notice. |
| string | $filename | The file that raised the error/warning/notice. |
| int | $lineno | Line number in $filename where the error/warning/notice was issued. |
Definition at line 57 of file ErrorReportingException.php.
| Erebot\ErrorReportingException::__toString | ( | ) |
Returns a textual representation of this exception.
| string | Textual representation of the exception. |
Definition at line 89 of file ErrorReportingException.php.