ErrorException
PHP Manual

ErrorException::getSeverity

(PHP 5 >= 5.1.0)

ErrorException::getSeverityبازگرداندن سطح خطرناک بودن استثنا

Description

final public int ErrorException::getSeverity ( void )

بازگرداندن سطح خطرناک بودن استثنا.

Parameters

This function has no parameters.

Return Values

سطح خطرناک بودن استثنا.

Examples

Example #1 نمونه ErrorException()

<?php
try {
    throw new 
ErrorException("Exception message"075);
} catch(
ErrorException $e) {
    echo 
"This exception severity is: " $e->getSeverity();
}
?>

The above example will output something similar to:

This exception severity is: 75


ErrorException
PHP Manual