Skip to content

Errors

SignalAPIError

Bases: SignalBotError

Base for errors raised by requests to signal-cli-rest-api.

SignalBotError

Bases: Exception

cannot_resolve_recipient classmethod

cannot_resolve_recipient() -> SignalBotError

Raised when a phone number, UUID, username, or group id/name can't be resolved to a UUID or group id.

Source code in src/signalbot/errors.py
@classmethod
def cannot_resolve_recipient(cls) -> SignalBotError:
    """Raised when a phone number, UUID, username, or group id/name can't
    be resolved to a UUID or group id.
    """
    return cls("Cannot resolve recipient.")