moto/moto/ecs/exceptions.py

24 lines
704 B
Python
Raw Normal View History

from __future__ import unicode_literals
from moto.core.exceptions import RESTError, JsonRESTError
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
)
class TaskDefinitionNotFoundException(JsonRESTError):
code = 400
def __init__(self):
super(TaskDefinitionNotFoundException, self).__init__(
error_type="ClientException",
message="The specified task definition does not exist.",
)