public static function fromNamedError(Configuration $config, $name, $message = null)
    {
        $report = new static($config);

        $report->setName($name)
              ->setMessage($message)
              ->setStacktrace(Stacktrace::generate($config))
              ->setUnhandled(false)
              ->setSeverityReason(['type' => 'handledError']);

        return $report;
    }
public static function fromNamedError(Configuration $config, $name, $message = null)
    {
        $report = new static($config);

        $report->setName($name)
              ->setMessage($message)
              ->setStacktrace(Stacktrace::generate($config))
              ->setUnhandled(false)
              ->setSeverityReason(['type' => 'handledError']);

        return $report;
    }
public static function fromNamedError ( Configuration $ config , $ name , $ message = null ) { $ report = new static ( $ config ) ; $ report -> setName ( $ name ) -> setMessage ( $ message ) -> setStacktrace ( Stacktrace :: generate ( $ config ) ) -> setUnhandled ( false ) -> setSeverityReason ( [ 'type' => 'handledError' ] ) ; return $ report ; }
Create a new report from a named error.

@param \Bugsnag\Configuration $config  the config instance
@param string                 $name    the error name
@param string|null            $message the error message

@return static
Create a new report from a named error .