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