Документация PHP
| Документация DHTML | Документация Smarty | SVG/VML Графика и JavaScript
| Документация bash |
Context options and parameters
ErrorException::getSeverity
(PHP 5 >= 5.1.0)
ErrorException::getSeverity — Gets the exception severity
Описание
final public int ErrorException::getSeverity ( void )
Returns the severity of the exception.
Список параметров
This function has no parameters.
Возвращаемые значения
Returns the severity level of the exception.
Примеры
Пример #1 ErrorException() example
<?php
try {
throw new ErrorException("Exception message", 0, 75);
} catch(ErrorException $e) {
echo "This exception severity is: " . $e->getSeverity();
}
?>
Результатом выполнения данного примера будет что-то подобное:
This exception severity is: 75