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

search for in the

コンテキストオプションとパラメータ> <ErrorException
Last updated: Fri, 10 Oct 2008

view this page in

ErrorException::getSeverity

(PHP 5 >= 5.1.0)

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

説明

final public int ErrorException::getSeverity ( void )

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

パラメータ

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

返り値

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

例1 ErrorException() の例

<?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 | sitemap | contact | advertising | mirror sites