object = $object; } /** * @param string $method * @param array $args */ public function __call($method, $args) { try { call_user_func_array([$this->object, $method], $args); } catch (Exception $exception) { CatchException::$exception = $exception; } catch (Throwable $exception) { CatchException::$exception = $exception; } } }