def METHOD_NAME(self, exception_type: Type[Exception]) -> bool:
    """Determine whether this exception corresponds to an instance of exception_type
    Parameters
    ----------
    exception_type:
       The type of the exception we are checking this against
    Returns
    -------
    True if this exception is an instance of the given type, False otherwise
    """
    matches_self = (
        self.name == exception_type.__name__
        and self.module == exception_type.__module__
    )
    if matches_self:
        return True
    classpath = f"{exception_type.__module__}.{exception_type.__name__}"
    return classpath in self.ancestors