ErrorException::getSeverity
(PHP 5 >= 5.1.0)
ErrorException::getSeverity — İstisnanın önem derecesi ile döner
Açıklama
final public int ErrorException::getSeverity
( void
)
İstisnanın önem derecesini döndürür.
Değiştirgeler
Bu işlevin değiştirgesi yoktur.
Dönen Değerler
İstisnanın önem derecesini döndürür.
Örnekler
Örnek 1 - ErrorException::getSeverity() örneği
<?php
try {
throw new ErrorException("İstisna iletisi", 0, 75);
} catch(ErrorException $e) {
echo "Bu istisnanın önem derecesi: " . $e->getSeverity();
}
?>
Yukarıdaki örnek şuna benzer bir çıktı üretir:
Bu istisnanın önem derecesi: 75
ErrorException::getSeverity
There are no user contributed notes for this page.
