Create an instance based on an error value.
public static fromErrorValue ( mixed $err ) : self | ||
$err | mixed | |
리턴 | self |
/** * @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); }