2018-06-25 00:13:39 +00:00
|
|
|
from __future__ import unicode_literals
|
2019-07-26 13:11:25 +00:00
|
|
|
from moto.core.exceptions import RESTError, JsonRESTError
|
2018-06-25 00:13:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ServiceNotFoundException(RESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self, service_name):
|
|
|
|
super(ServiceNotFoundException, self).__init__(
|
|
|
|
error_type="ServiceNotFoundException",
|
2018-10-31 02:03:09 +00:00
|
|
|
message="The service {0} does not exist".format(service_name),
|
2019-10-31 15:44:26 +00:00
|
|
|
template="error_json",
|
2018-10-31 02:09:47 +00:00
|
|
|
)
|
2019-07-26 13:11:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
class TaskDefinitionNotFoundException(JsonRESTError):
|
|
|
|
code = 400
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
super(TaskDefinitionNotFoundException, self).__init__(
|
|
|
|
error_type="ClientException",
|
|
|
|
message="The specified task definition does not exist.",
|
|
|
|
)
|