Source code for gdgps_apps.exceptions
[docs]
class InvalidConfiguration(Exception):
def __init__(self, *args):
super(InvalidConfiguration, self).__init__(*args)
[docs]
class InvalidAuthenticationCredentials(InvalidConfiguration):
pass
[docs]
class NoAvailableProcessors(Exception):
def __init__(self, *args):
super(NoAvailableProcessors, self).__init__(*args)
[docs]
class UnableToReachHost(Exception):
host = None
def __init__(self, *args, host):
self.host = host
super(UnableToReachHost, self).__init__(*args)
[docs]
class InvalidSelector(Exception):
selector = None
def __init__(self, *args, selector):
self.selector = selector
super(InvalidSelector, self).__init__(*args)
[docs]
class InvalidIdentifier(Exception):
uuid = None
def __init__(self, *args, uuid):
self.uuid = uuid
super(InvalidIdentifier, self).__init__(*args)
[docs]
class InvalidDataState(Exception):
state = None
def __init__(self, *args, state):
self.state = state
super(InvalidDataState, self).__init__(*args)
[docs]
class ArtifactNotFound(Exception):
uuid = None
def __init__(self, *args, uuid):
self.uuid = uuid
super(ArtifactNotFound, self).__init__(*args)
[docs]
class DataNotFound(ArtifactNotFound):
"""Thrown when a given data identifier is valid, but was not found in the system."""
[docs]
class AlertNotFound(ArtifactNotFound):
"""Thrown when a given alert identifier is valid, but was not found in the system."""
[docs]
class FlagNotFound(ArtifactNotFound):
"""Thrown when a given flag identifier is valid, but was not found in the system."""
[docs]
class InvalidOperation(Exception):
uuid = None
def __init__(self, *args, uuid):
self.uuid = uuid
super(InvalidOperation, self).__init__(*args)
[docs]
class UnauthorizedOperation(Exception):
"""The attempted operation is unauthorized based on the provided authentication parameters"""
def __init__(self, *args):
super(UnauthorizedOperation, self).__init__(*args)