2018-06-24 20:13:39 -04:00
|
|
|
from __future__ import unicode_literals
|
2019-07-26 15:11:25 +02:00
|
|
|
from moto.core.exceptions import RESTError, JsonRESTError
|
2018-06-24 20:13:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
class ServiceNotFoundException(RESTError):
|
|
|
|
code = 400
|
|
|
|
|
2020-12-08 06:55:49 -06:00
|
|
|
def __init__(self):
|
2018-06-24 20:13:39 -04:00
|
|
|
super(ServiceNotFoundException, self).__init__(
|
2020-12-08 06:55:49 -06:00
|
|
|
error_type="ServiceNotFoundException", message="Service not found."
|
2018-10-30 22:09:47 -04:00
|
|
|
)
|
2019-07-26 15:11:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
class TaskDefinitionNotFoundException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
super(TaskDefinitionNotFoundException, self).__init__(
|
|
|
|
error_type="ClientException",
|
|
|
|
message="The specified task definition does not exist.",
|
|
|
|
)
|
2020-07-20 23:17:37 -07:00
|
|
|
|
|
|
|
|
2020-12-08 06:55:49 -06:00
|
|
|
class RevisionNotFoundException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
super(RevisionNotFoundException, self).__init__(
|
|
|
|
error_type="ClientException", message="Revision is missing.",
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2020-07-20 23:17:37 -07:00
|
|
|
class TaskSetNotFoundException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
super(TaskSetNotFoundException, self).__init__(
|
|
|
|
error_type="ClientException",
|
|
|
|
message="The specified task set does not exist.",
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
class ClusterNotFoundException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
super(ClusterNotFoundException, self).__init__(
|
2021-02-01 13:19:46 +01:00
|
|
|
error_type="ClusterNotFoundException", message="Cluster not found.",
|
2020-07-20 23:17:37 -07:00
|
|
|
)
|
2020-12-08 06:55:49 -06:00
|
|
|
|
|
|
|
|
|
|
|
class InvalidParameterException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self, message):
|
|
|
|
super(InvalidParameterException, self).__init__(
|
|
|
|
error_type="ClientException", message=message,
|
|
|
|
)
|