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

search for in the

定義済みのインターフェイス> <ErrorException::__construct
Last updated: Fri, 13 Nov 2009

view this page in

ErrorException::getSeverity

(PHP 5 >= 5.1.0)

ErrorException::getSeverity例外の深刻度を取得する

説明

final public int ErrorException::getSeverity ( void )

例外の深刻度を返します。

パラメータ

この関数にはパラメータはありません。

返り値

例外の深刻度レベルを返します。

例1 ErrorException::getSeverity() の例

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

上の例の出力は、 たとえば以下のようになります。

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.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites