"""Custom exceptions for the accounting transfer lambda.""" from __future__ import annotations class PermanentError(Exception): """Non-retriable error. SFN routes to HandleError; job is set FAILED.""" class TransientError(Exception): """Retriable error. SFN retries up to MaxAttempts before routing to HandleError."""