How to use the gkeepapi.exception.KeepException function in gkeepapi

To help you get started, we’ve selected a few gkeepapi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kiwiz / gkeepapi / gkeepapi / exception.py View on Github external
"""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
github kiwiz / gkeepapi / gkeepapi / exception.py View on Github external
# -*- 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):
github kiwiz / gkeepapi / gkeepapi / exception.py View on Github external
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):
github kiwiz / gkeepapi / gkeepapi / exception.py View on Github external
"""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
github kiwiz / gkeepapi / gkeepapi / exception.py View on Github external
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):
github kiwiz / gkeepapi / gkeepapi / exception.py View on Github external
"""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