nostr_tools.RelayValidationError

exception nostr_tools.RelayValidationError[source]

Bases: RelayError

Exception raised when relay configuration validation fails.

Raised when: - Relay URL is invalid or malformed - Network type doesn’t match URL - Required configuration is missing

Parameters:

message (str) – Description of the relay validation error

Examples

>>> raise RelayValidationError("url must be a valid WebSocket URL")