Adding create_secret, exception handle, fix (#1680)

This commit is contained in:
Zane Williamson 2018-07-14 00:39:19 -07:00 committed by Terry Cain
commit ba1ceee95f
5 changed files with 126 additions and 12 deletions

View file

@ -0,0 +1,15 @@
from __future__ import unicode_literals
from moto.core.exceptions import JsonRESTError
class SecretsManagerClientError(JsonRESTError):
code = 400
class ResourceNotFoundException(SecretsManagerClientError):
def __init__(self):
self.code = 404
super(ResourceNotFoundException, self).__init__(
"ResourceNotFoundException",
"Secrets Manager can't find the specified secret"
)