It would be nice if there was information somewhere on what severity levels could be returned and their meanings.
I was unable to discern it from the source code.
ErrorException::getSeverity
(PHP 5 >= 5.1.0)
ErrorException::getSeverity — Gets the exception severity
Description
final public int ErrorException::getSeverity
( void
)
Returns the severity of the exception.
Parameters
This function has no parameters.
Return Values
Returns the severity level of the exception.
Examples
Example #1 ErrorException::getSeverity() example
<?php
try {
throw new ErrorException("Exception message", 0, 75);
} catch(ErrorException $e) {
echo "This exception severity is: " . $e->getSeverity();
}
?>
The above example will output something similar to:
This exception severity is: 75
ErrorException::getSeverity
wmoran at potentialtech dot com
20-Feb-2009 07:04
20-Feb-2009 07:04
