Module aws_lambda_powertools.metrics.exceptions

Classes

class MetricResolutionError (*args, **kwargs)

When metric resolution is not supported by CloudWatch

Expand source code
class MetricResolutionError(Exception):
    """When metric resolution is not supported by CloudWatch"""

    pass

Ancestors

  • builtins.Exception
  • builtins.BaseException
class MetricUnitError (*args, **kwargs)

When metric unit is not supported by CloudWatch

Expand source code
class MetricUnitError(Exception):
    """When metric unit is not supported by CloudWatch"""

    pass

Ancestors

  • builtins.Exception
  • builtins.BaseException
class MetricValueError (*args, **kwargs)

When metric value isn't a valid number

Expand source code
class MetricValueError(Exception):
    """When metric value isn't a valid number"""

    pass

Ancestors

  • builtins.Exception
  • builtins.BaseException
class SchemaValidationError (*args, **kwargs)

When serialization fail schema validation

Expand source code
class SchemaValidationError(Exception):
    """When serialization fail schema validation"""

    pass

Ancestors

  • builtins.Exception
  • builtins.BaseException