public function throws(...$exceptions): Stub
    {
        if (empty($exceptions)) {
            return $this->doesWith(
                function () {
                    throw new Exception();
                },
                [],
                false,
                false,
                false
            );
        }

        foreach ($exceptions as $exception) {
            if (is_string($exception)) {
                $exception = new Exception($exception);
            } elseif ($exception instanceof InstanceHandle) {
                $exception = $exception->get();
            }

            $this->doesWith(
                function () use ($exception) {
                    throw $exception;
                },
                [],
                false,
                false,
                false
            );
        }

        return $this;
    }