Zend\Stratigility\Next::raiseThrowableFromError PHP Method

raiseThrowableFromError() private method

private raiseThrowableFromError ( mixed $err )
$err mixed
    private function raiseThrowableFromError($err)
    {
        if ($err instanceof Throwable || $err instanceof \Exception) {
            throw $err;
        }
        $this->triggerErrorDeprecation();
        throw Exception\MiddlewareException::fromErrorValue($err);
    }