Source code for dxaws_cloudfront.exceptions
"""Module-specific exceptions.
Keep exceptions stable once published. Callers may rely on these names
for control flow and error handling.
"""
[docs]
class DxAwsError(Exception):
"""Base error for dxaws-cloudfront."""
[docs]
class ValidationError(DxAwsError):
"""Raised when caller-provided desired state or arguments are invalid."""
[docs]
class ProviderError(DxAwsError):
"""Raised when the provider encounters an unexpected or unrecoverable error."""
[docs]
class PlanError(DxAwsError):
"""Raised when planning fails (e.g., inconsistent current state or diffing failure)."""
[docs]
class ApplyError(DxAwsError):
"""Raised when applying a plan fails."""