Cleanup SNS exceptions. Closes #751.
This commit is contained in:
parent
e7a3f3408e
commit
c207963a86
4 changed files with 87 additions and 3 deletions
|
|
@ -8,3 +8,19 @@ class SNSNotFoundError(RESTError):
|
|||
def __init__(self, message):
|
||||
super(SNSNotFoundError, self).__init__(
|
||||
"NotFound", message)
|
||||
|
||||
|
||||
class DuplicateSnsEndpointError(RESTError):
|
||||
code = 400
|
||||
|
||||
def __init__(self, message):
|
||||
super(DuplicateSnsEndpointError, self).__init__(
|
||||
"DuplicateEndpoint", message)
|
||||
|
||||
|
||||
class SnsEndpointDisabled(RESTError):
|
||||
code = 400
|
||||
|
||||
def __init__(self, message):
|
||||
super(SnsEndpointDisabled, self).__init__(
|
||||
"EndpointDisabled", message)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue