def add_exception_type(self, exc):
if not inspect.isclass(exc):<EOL><INDENT>raise TypeError('<STR_LIT>'.format(exc))<EOL><DEDENT>if not issubclass(exc, BaseException):<EOL><INDENT>raise TypeError('<STR_LIT>'.format(exc))<EOL><DEDENT>self._valid_exception = (*self._valid_exception, exc)<EOL>
r"""Adds an exception type to be handled during the reconnect logic.

        By default the exception types handled are those handled by
        :meth:`discord.Client.connect`\, which includes a lot of internet disconnection
        errors.

        This function is useful if you're interacting with a 3rd party library that
        raises its own set of exceptions.

        Parameters
        ------------
        exc: Type[:class:`BaseException`]
            The exception class to handle.

        Raises
        --------
        TypeError
            The exception passed is either not a class or not inherited from :class:`BaseException`.