agora.core.errors

Domain exception hierarchy. All Agora errors descend from AgoraError.

Exceptions

AgentError

Error related to agent configuration or runtime.

AgoraError

Base exception for all Agora domain errors.

ContractViolation

A pre- or postcondition was not satisfied.

DuplicateFingerprint

A task with this fingerprint was already processed (retry dedup).

InvalidTransition

Attempted an invalid state transition.

TaskError

Error during task execution or construction.

exception agora.core.errors.AgoraError[source]

Bases: Exception

Base exception for all Agora domain errors.

exception agora.core.errors.ContractViolation[source]

Bases: AgoraError

A pre- or postcondition was not satisfied.

__init__(condition, context=None)[source]
exception agora.core.errors.InvalidTransition[source]

Bases: AgoraError

Attempted an invalid state transition.

__init__(from_state, to_state, reason='')[source]
exception agora.core.errors.TaskError[source]

Bases: AgoraError

Error during task execution or construction.

exception agora.core.errors.AgentError[source]

Bases: AgoraError

Error related to agent configuration or runtime.

exception agora.core.errors.DuplicateFingerprint[source]

Bases: AgoraError

A task with this fingerprint was already processed (retry dedup).

__init__(fingerprint)[source]