downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Predefined Interfaces> <ErrorException::__construct
Last updated: Thu, 17 Sep 2009

view this page in

ErrorException::getSeverity

(PHP 5 >= 5.1.0)

ErrorException::getSeverityВзима строгостта на изключението

Описание

final public int ErrorException::getSeverity ( void )

Връща строгостта на изключението.

Параметри

Тази функция няма параметри.

Връщани стойности

Връща нивото на строгост на изключението.

Примери

Example #1 Пример за ErrorException()

<?php
try {
    throw new 
ErrorException("Съобщение на изключението"075);
} catch(
ErrorException $e) {
    echo 
"Нивото на строгост на това изключение е: " $e->getSeverity();
}
?>

Примерът по-горе ще изведе нещо подобно на:

Нивото на строгост на това изключение е: 75



add a note add a note User Contributed Notes
ErrorException::getSeverity
There are no user contributed notes for this page.

Predefined Interfaces> <ErrorException::__construct
Last updated: Thu, 17 Sep 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites