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 ) :
2021-12-28 21:26:56 -01:00
super ( ) . __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 ) :
2021-12-28 21:26:56 -01:00
super ( ) . __init__ (
2019-07-26 15:11:25 +02:00
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 ) :
2022-03-10 13:39:59 -01:00
super ( ) . __init__ ( error_type = " ClientException " , message = " Revision is missing. " )
2020-12-08 06:55:49 -06:00
2020-07-20 23:17:37 -07:00
class TaskSetNotFoundException ( JsonRESTError ) :
code = 400
def __init__ ( self ) :
2021-12-28 21:26:56 -01:00
super ( ) . __init__ (
2020-07-20 23:17:37 -07:00
error_type = " ClientException " ,
message = " The specified task set does not exist. " ,
)
class ClusterNotFoundException ( JsonRESTError ) :
code = 400
def __init__ ( self ) :
2021-12-28 21:26:56 -01:00
super ( ) . __init__ (
2022-03-10 13:39:59 -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
2021-10-21 22:00:32 +00:00
class EcsClientException ( JsonRESTError ) :
code = 400
def __init__ ( self , message ) :
2022-03-10 13:39:59 -01:00
super ( ) . __init__ ( error_type = " ClientException " , message = message )
2021-10-21 22:00:32 +00:00
2020-12-08 06:55:49 -06:00
class InvalidParameterException ( JsonRESTError ) :
code = 400
def __init__ ( self , message ) :
2022-03-10 13:39:59 -01:00
super ( ) . __init__ ( error_type = " InvalidParameterException " , message = message )
2021-10-21 22:00:32 +00:00
class UnknownAccountSettingException ( InvalidParameterException ) :
def __init__ ( self ) :
super ( ) . __init__ (
" unknown should be one of [serviceLongArnFormat,taskLongArnFormat,containerInstanceLongArnFormat,containerLongArnFormat,awsvpcTrunking,containerInsights,dualStackIPv6] "
2020-12-08 06:55:49 -06:00
)