Adding create_secret, exception handle, fix (#1680)
This commit is contained in:
parent
c20e8568e0
commit
ba1ceee95f
5 changed files with 126 additions and 12 deletions
15
moto/secretsmanager/exceptions.py
Normal file
15
moto/secretsmanager/exceptions.py
Normal 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"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue