moto/moto/mediastore/exceptions.py
Jordi Alhambra 7f49cd0ed6
MediaStore delete container and list tags endpoints implemented (#3938)
* Add delete container and list tags endpoints to MediaStore

* Black reformat

* Fixed Lint problems

* Check if dictionary was deleted effectively

* lint fix

Co-authored-by: av <arcovoltaico@gmail.com>
2021-05-20 16:17:31 +01:00

33 lines
1,005 B
Python

from __future__ import unicode_literals
from moto.core.exceptions import JsonRESTError
class MediaStoreClientError(JsonRESTError):
code = 400
class ContainerNotFoundException(MediaStoreClientError):
def __init__(self, msg=None):
self.code = 400
super(ContainerNotFoundException, self).__init__(
"ContainerNotFoundException",
msg or "The specified container does not exist",
)
class ResourceNotFoundException(MediaStoreClientError):
def __init__(self, msg=None):
self.code = 400
super(ResourceNotFoundException, self).__init__(
"ResourceNotFoundException", msg or "The specified container does not exist"
)
class PolicyNotFoundException(MediaStoreClientError):
def __init__(self, msg=None):
self.code = 400
super(PolicyNotFoundException, self).__init__(
"PolicyNotFoundException",
msg or "The policy does not exist within the specfied container",
)