src/Neutrino/Error/Error.php
public static function fromException($e)
    {
        return new static([
            'type'        => -1,
            'code'        => $e->getCode(),
            'message'     => $e->getMessage(),
            'file'        => $e->getFile(),
            'line'        => $e->getLine(),
            'isException' => true,
            'exception'   => $e,
        ]);
    }
public static function fromException($e)
    {
        return new static([
            'type'        => -1,
            'code'        => $e->getCode(),
            'message'     => $e->getMessage(),
            'file'        => $e->getFile(),
            'line'        => $e->getLine(),
            'isException' => true,
            'exception'   => $e,
        ]);
    }
@param \Exception|\Error|\Throwable $e

@return \Neutrino\Error\Error