Skip to content

wasat.exceptions

Exceptions for the Wasat Gemini client library.

ConnectionError

Bases: WasatError

Raised when a connection to the Gemini server fails.

ProtocolError

Bases: WasatError

Raised when the Gemini server violates the protocol.

RedirectError

Bases: WasatError

Raised when redirect limits are exceeded or redirects are invalid.

SecurityError

Bases: WasatError

Raised when TLS or certificate validation (TOFU) fails.

URIError

Bases: WasatError

Raised when a Gemini URI is invalid or malformed.

WasatError

Bases: Exception

Base exception for all errors raised by the Wasat library.