Source code for acore_server_metadata.exc
# -*- coding: utf-8 -*-
[docs]class ServerNotUniqueError(Exception):
"""
Raises when there are multiple :class:`~acore_server_metadata.server.Server`
has the same id.
"""
pass
[docs]class ServerStatusError(Exception):
"""
Raises when the status of the EC2 or RDS or server doesn't meet the expectation
"""
[docs]class ServerNotFoundError(ServerStatusError):
"""
Raises when a :class:`~acore_server_metadata.server.Server` is not found.
"""
[docs]class ServerAlreadyExistsError(ServerStatusError):
"""
Raises when try to launch a new EC2 or DB instance when there is already
a existing one.
"""
[docs]class FailedToStartServerError(ServerStatusError):
"""
Raises when the current EC2 and RDS state is not ready for start.
(It has to exist first).
"""
[docs]class FailedToStopServerError(ServerStatusError):
"""
Raises when the current EC2 and RDS state is not ready for stop.
(It has to exist first).
"""