move connection related exceptions to stp project
@@ -212,31 +212,6 @@ class OrientDBNotRunning(GraphStorageNotAvailable):
pass
-class EndpointException(Exception):
- pass
-
-
-class MissingEndpoint(EndpointException):
- def __init__(self):
- super().__init__('missing endpoint')
-
-
-class InvalidEndpointIpAddress(EndpointException):
- def __init__(self, endpoint):
- super().__init__("invalid endpoint address: '{}'".format(endpoint))
-
-
-class InvalidEndpointPort(EndpointException):
- def __init__(self, endpoint):
- super().__init__("invalid endpoint port: '{}'".format(endpoint))
-
-
-class PortNotAvailable(OSError):
- def __init__(self, port):
- self.port = port
- super().__init__("port not available: {}".format(port))
-
-
class OperationError(Exception):
def __init__(self, error):
super().__init__("error occurred during operation: {}".format(error))
