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: Fri, 20 Nov 2009

view this page in

ErrorException::getSeverity

(PHP 5 >= 5.1.0)

ErrorException::getSeverityGets the exception severity

Opis

final public int ErrorException::getSeverity ( void )

Returns the severity of the exception.

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości

Returns the severity level of the exception.

Przykłady

Przykład #1 ErrorException::getSeverity() example

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

Powyższy przykład wyświetli coś podobnego do:

This exception severity is: 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: Fri, 20 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites