Skip to content

wasat.exceptions

Exceptions for the Wasat Gemini client library.

CertificateExpiredError

Bases: IgnorableSecurityError

Raised when a server TLS certificate has expired.

CertificateNotYetValidError

Bases: IgnorableSecurityError

Raised when a server TLS certificate is not yet valid.

CertificateRejectedError

Bases: SecurityError

Raised when a new server TLS certificate is rejected by the verification callback.

CertificateRevokedError

Bases: SecurityError

Raised when a server TLS certificate has been revoked.

CertificateUntrustedError

Bases: IgnorableSecurityError

Raised when CA verification fails due to a self-signed or untrusted certificate.

ConnectionError

Bases: WasatError

Raised when a connection to the Gemini server fails.

FingerprintMismatchError

Bases: SecurityError

Raised when a server TLS certificate fingerprint does not match the stored TOFU fingerprint.

HostnameMismatchError

Bases: IgnorableSecurityError

Raised when a server TLS certificate does not match the requested hostname or IP address.

IgnorableSecurityError

Bases: SecurityError

Base class for TLS or certificate security errors that can be ignored for a session.

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.