'Check if this failure\'s type is in a predetermined list.
@type errorTypes: list of L{Exception} classes or
fully-qualified class names.
@returns: the matching L{Exception} type, or None if no match.'

def check(self, *errorTypes):

    for error in errorTypes:
        err = error
        if (inspect.isclass(error) and issubclass(error, Exception)):
            err = reflect.qual(error)
        if (err in self.parents):
            return error
    return None
