def __str__(self):
        if self.msg:
            return self.msg
        try:
            return str(self.__dict__)
        except (NameError, __HOLE__, KeyError), e:
            return 'Unprintable exception %s: %s' \
                % (self.__class__.__name__, str(e))
dataset/ETHPy150Open benoitc/restkit/restkit/errors.py/ResourceError.__str__