0c3708a8e7
* remove code for local test * Add SNS set_subscription_attributes and get_subscription_attributes
35 lines
806 B
Python
35 lines
806 B
Python
from __future__ import unicode_literals
|
|
from moto.core.exceptions import RESTError
|
|
|
|
|
|
class SNSNotFoundError(RESTError):
|
|
code = 404
|
|
|
|
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)
|
|
|
|
|
|
class SNSInvalidParameter(RESTError):
|
|
code = 400
|
|
|
|
def __init__(self, message):
|
|
super(SNSInvalidParameter, self).__init__(
|
|
"InvalidParameter", message)
|