from builtins import str


class ActivityFailed(Exception):

    def __init__(self, exception, details=None):
        super(ActivityFailed, self).__init__('%s: %s' %
                                             (exception.__class__.__name__, str(exception)))
        self.details = details
