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, 13 Nov 2009

view this page in

ErrorException::getSeverity

(PHP 5 >= 5.1.0)

ErrorException::getSeverityObtém o nível da exceção

Descrição

final public int ErrorException::getSeverity ( void )

Retorna o nível da exceção.

Parâmetros

Esta função não contém parâmetros.

Valor Retornado

Retorna o nível da exceção.

Exemplos

Exemplo #1 Exemplo da ErrorException()

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

O exemplo acima irá imprimir algo similar a:

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, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites