Module aws_lambda_powertools.utilities.idempotency.exceptions

Idempotency errors

Expand source code
"""
Idempotency errors
"""


class IdempotencyItemAlreadyExistsError(Exception):
    """
    Item attempting to be inserted into persistence store already exists and is not expired
    """


class IdempotencyItemNotFoundError(Exception):
    """
    Item does not exist in persistence store
    """


class IdempotencyAlreadyInProgressError(Exception):
    """
    Execution with idempotency key is already in progress
    """


class IdempotencyInvalidStatusError(Exception):
    """
    An invalid status was provided
    """


class IdempotencyValidationError(Exception):
    """
    Payload does not match stored idempotency record
    """


class IdempotencyInconsistentStateError(Exception):
    """
    State is inconsistent across multiple requests to persistence store
    """


class IdempotencyPersistenceLayerError(Exception):
    """
    Unrecoverable error from the data store
    """


class IdempotencyKeyError(Exception):
    """
    Payload does not contain an idempotent key
    """

Classes

class IdempotencyAlreadyInProgressError (*args, **kwargs)

Execution with idempotency key is already in progress

Expand source code
class IdempotencyAlreadyInProgressError(Exception):
    """
    Execution with idempotency key is already in progress
    """

Ancestors

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

State is inconsistent across multiple requests to persistence store

Expand source code
class IdempotencyInconsistentStateError(Exception):
    """
    State is inconsistent across multiple requests to persistence store
    """

Ancestors

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

An invalid status was provided

Expand source code
class IdempotencyInvalidStatusError(Exception):
    """
    An invalid status was provided
    """

Ancestors

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

Item attempting to be inserted into persistence store already exists and is not expired

Expand source code
class IdempotencyItemAlreadyExistsError(Exception):
    """
    Item attempting to be inserted into persistence store already exists and is not expired
    """

Ancestors

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

Item does not exist in persistence store

Expand source code
class IdempotencyItemNotFoundError(Exception):
    """
    Item does not exist in persistence store
    """

Ancestors

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

Payload does not contain an idempotent key

Expand source code
class IdempotencyKeyError(Exception):
    """
    Payload does not contain an idempotent key
    """

Ancestors

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

Unrecoverable error from the data store

Expand source code
class IdempotencyPersistenceLayerError(Exception):
    """
    Unrecoverable error from the data store
    """

Ancestors

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

Payload does not match stored idempotency record

Expand source code
class IdempotencyValidationError(Exception):
    """
    Payload does not match stored idempotency record
    """

Ancestors

  • builtins.Exception
  • builtins.BaseException