fromErrorValue() публичный статический Метод

Create an instance based on an error value.
public static fromErrorValue ( mixed $err ) : self
$err mixed
Результат self
Пример #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);
 }