(PHP 5 >= 5.1.0, PHP 7)
ErrorException::getSeverity — ��ȡ�쳣�����س̶�
�����쳣�����س̶ȡ�
�˺���û�в�����
�����쳣�����ؼ���
Example #1 ErrorException::getSeverity() ����
<?php
try {
throw new ErrorException("Exception message", 0, E_USER_ERROR);
} catch(ErrorException $e) {
echo "This exception severity is: " . $e->getSeverity();
var_dump($e->getSeverity() === E_USER_ERROR);
}
?>
�������̵���������ڣ�
This exception severity is: 256 bool(true)