$severity
is an integer representing, well, the severity of the error. The manual states that it can be any integer, but it is preferable to use a constant from the predefined error constants . They are equally used by error_reporting .
, ErrorException
Exception
, $severity
. , ErrorException
PHP Exception
s. set_error_handler().
, ErrorException::$severity
PHP, , Exception
.. , , ErrorException
, .