Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"""Keep consistency error."""
pass
class ResyncRequiredException(SyncException):
"""Full resync required error."""
pass
class UpgradeRecommendedException(SyncException):
"""Upgrade recommended error."""
pass
class MergeException(KeepException):
"""Node consistency error."""
pass
class InvalidException(KeepException):
"""Constraint error."""
pass
class ParseException(KeepException):
"""Parse error."""
def __init__(self, msg, raw):
super(ParseException, self).__init__(msg)
self.raw = raw
# -*- coding: utf-8 -*-
"""
.. moduleauthor:: Kai
"""
class APIException(Exception):
"""The API server returned an error."""
def __init__(self, code, msg):
super(APIException, self).__init__(msg)
self.code = code
class KeepException(Exception):
"""Generic Keep error."""
pass
class LoginException(KeepException):
"""Login exception."""
pass
class LabelException(KeepException):
"""Keep label error."""
pass
class SyncException(KeepException):
"""Keep consistency error."""
pass
class ResyncRequiredException(SyncException):
"""Full resync required error."""
pass
class UpgradeRecommendedException(SyncException):
class APIException(Exception):
"""The API server returned an error."""
def __init__(self, code, msg):
super(APIException, self).__init__(msg)
self.code = code
class KeepException(Exception):
"""Generic Keep error."""
pass
class LoginException(KeepException):
"""Login exception."""
pass
class LabelException(KeepException):
"""Keep label error."""
pass
class SyncException(KeepException):
"""Keep consistency error."""
pass
class ResyncRequiredException(SyncException):
"""Full resync required error."""
pass
class UpgradeRecommendedException(SyncException):
"""Upgrade recommended error."""
pass
class MergeException(KeepException):
"""Keep label error."""
pass
class SyncException(KeepException):
"""Keep consistency error."""
pass
class ResyncRequiredException(SyncException):
"""Full resync required error."""
pass
class UpgradeRecommendedException(SyncException):
"""Upgrade recommended error."""
pass
class MergeException(KeepException):
"""Node consistency error."""
pass
class InvalidException(KeepException):
"""Constraint error."""
pass
class ParseException(KeepException):
"""Parse error."""
def __init__(self, msg, raw):
super(ParseException, self).__init__(msg)
self.raw = raw
super(APIException, self).__init__(msg)
self.code = code
class KeepException(Exception):
"""Generic Keep error."""
pass
class LoginException(KeepException):
"""Login exception."""
pass
class LabelException(KeepException):
"""Keep label error."""
pass
class SyncException(KeepException):
"""Keep consistency error."""
pass
class ResyncRequiredException(SyncException):
"""Full resync required error."""
pass
class UpgradeRecommendedException(SyncException):
"""Upgrade recommended error."""
pass
class MergeException(KeepException):
"""Node consistency error."""
pass
class InvalidException(KeepException):
"""Full resync required error."""
pass
class UpgradeRecommendedException(SyncException):
"""Upgrade recommended error."""
pass
class MergeException(KeepException):
"""Node consistency error."""
pass
class InvalidException(KeepException):
"""Constraint error."""
pass
class ParseException(KeepException):
"""Parse error."""
def __init__(self, msg, raw):
super(ParseException, self).__init__(msg)
self.raw = raw