Inheritance: extends RuntimeExceptio\RuntimeException
Example #1
0
 /**
  * @param mixed $err
  * @throws Throwable|\Exception
  */
 private function raiseThrowableFromError($err)
 {
     if ($err instanceof Throwable || $err instanceof \Exception) {
         throw $err;
     }
     $this->triggerErrorDeprecation();
     throw Exception\MiddlewareException::fromErrorValue($err);
 }