(PHP 5 >= 5.1.0)
ErrorException::getSeverity — بازگرداندن سطح خطرناک بودن استثنا
بازگرداندن سطح خطرناک بودن استثنا.
This function has no parameters.
سطح خطرناک بودن استثنا.
Example #1 نمونه ErrorException()
<?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