moto/moto/cloudwatch/exceptions.py
Anton Grübel 4df099c724
Add cloudwatch tags (#4179)
* Update cloudwatch.put_metric_alarm to accept TreatMissingData and Tags parameter
* Add parameter ExtendedStatistic and EvaluateLowSampleCountPercentile to cloudwatch.put_metric_alarm
* Add parameter ThresholdMetricId to cloudwatch.put_metric_alarm
2021-08-16 08:52:19 +01:00

37 lines
739 B
Python

from moto.core.exceptions import RESTError
class InvalidFormat(RESTError):
code = 400
def __init__(self, message):
super().__init__(__class__.__name__, message)
class InvalidParameterValue(RESTError):
code = 400
def __init__(self, message):
super().__init__(__class__.__name__, message)
class ResourceNotFound(RESTError):
code = 404
def __init__(self):
super().__init__(__class__.__name__, "Unknown")
class ResourceNotFoundException(RESTError):
code = 404
def __init__(self):
super().__init__(__class__.__name__, "Unknown")
class ValidationError(RESTError):
code = 400
def __init__(self, message):
super().__init__(__class__.__name__, message)