nostr_tools.ClientValidationError

exception nostr_tools.ClientValidationError[source]

Bases: ClientError

Exception raised when client configuration validation fails.

Raised when: - Invalid relay instance - Invalid timeout value - Missing SOCKS5 proxy for Tor relays - Type mismatches in client configuration

Parameters:

message (str) – Description of the client validation error

Examples

>>> raise ClientValidationError("timeout must be non-negative")