src/Sonic/Helper.php
public static function handle_errors($err_no, $err_str = '', $err_file = '', $err_line = '')
    {
        if (!($err_no & error_reporting())) {
            return;
        }
        throw new \ErrorException($err_str, $err_no, 0, $err_file, $err_line);
    }
public static function handle_errors($err_no, $err_str = '', $err_file = '', $err_line = '')
    {
        if (!($err_no & error_reporting())) {
            return;
        }
        throw new \ErrorException($err_str, $err_no, 0, $err_file, $err_line);
    }
Convert errors into ErrorException objects

@param  int            $err_no
@param  string         $err_str
@param  string         $err_file
@param  int            $err_line
@return bool
@throws \ErrorException