Skip to content

ant_ai.core.exceptions

HookBlockedError

Bases: Exception

Raised when a hook returns BLOCK — the response must not be used.

Source code in src/ant_ai/core/exceptions.py
1
2
class HookBlockedError(Exception):
    """Raised when a hook returns BLOCK — the response must not be used."""

HookMaxRetriesError

Bases: Exception

Raised when the retry loop exhausts all attempts and the hook still fails.

Source code in src/ant_ai/core/exceptions.py
5
6
class HookMaxRetriesError(Exception):
    """Raised when the retry loop exhausts all attempts and the hook still fails."""