Cleanup SNS exceptions. Closes #751.

This commit is contained in:
Steve Pulec 2017-03-16 22:28:30 -04:00
commit c207963a86
4 changed files with 87 additions and 3 deletions

View file

@ -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)