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
|
|
|
|
|
|
|
|
def __init__(self, service_name):
|
|
|
|
super(ServiceNotFoundException, self).__init__(
|
|
|
|
error_type="ServiceNotFoundException",
|
2018-10-30 22:03:09 -04:00
|
|
|
message="The service {0} does not exist".format(service_name),
|
2019-10-31 08:44:26 -07:00
|
|
|
template="error_json",
|
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.",
|
|
|
|
)
|