

def _raiseDbException(self, e):
    if (e.status == 401):
        raise APIException(((((('Authorization error - status ' + str(e.status)) + ' reason ') + str(e.error_msg)) + ' body ') + str(e.body)), block=True, user_exception=UserException(UserExceptionType.Authorization, intervention_required=True))
    if (e.status == 507):
        raise APIException('Dropbox quota error', block=True, user_exception=UserException(UserExceptionType.AccountFull, intervention_required=True))
    raise APIException(((((('API failure - status ' + str(e.status)) + ' reason ') + str(e.reason)) + ' body ') + str(self.error_msg)))

dataset/ETHPy150Open cpfair/tapiriik/tapiriik/services/Dropbox/dropbox.py DropboxService._raiseDbException/VarMisuse@151/218 `e`->`self`