"""Typed errors raised by the cross-platform file-lock helpers.Lives separately from :mod:`core.locks` so callers that only needthe exception type (e.g. for ``except`` clauses) avoid pulling in thelocking implementation and its OS-specific imports.This module declares only the generic OS sidecar-lock failure raised by:func:`core.locks.exclusive_file_lock`. Crash-recoverable authacquisition locks, bucket PID lockfiles, and secure-storage sessionguards expose their own typed errors because they carry holder metadata,TTL/recovery state, or custody semantics that this primitive does not own."""from__future__importannotationsfrom.errorsimportAeatError
[docs]classLockAcquisitionError(AeatError):"""Raised when an exclusive file lock cannot be acquired within the timeout. Bound to a registered :class:`core.errors.ErrorCode` so callers can present a stable error identifier rather than a raw message. The registry classifies it as ``LOCKED`` and retryable, meaning a later bounded retry may succeed after another process releases the OS lock. It does not imply automatic stale-lock deletion or unbounded retry. """