Skip to content

proxystore.p2p.relay.exceptions

Exception types raised by relay clients and servers.

RelayClientError

Bases: Exception

Base exception type for exceptions raised by relay clients.

RelayNotConnectedError

Bases: RelayClientError

Exception raised if a client is not connected to a relay server.

RelayRegistrationError

Bases: RelayClientError

Exception raised by client if unable to register with relay server.

RelayServerError

Bases: Exception

Base exception type for exceptions raised by relay server.

BadRequestError

Bases: RelayServerError

A runtime exception indicating a bad client request.

ForbiddenError

Bases: RelayServerError

Client does not have correct permissions after authentication.

InternalServerError

Bases: RelayServerError

Server encountered an unexpected condition.

UnauthorizedError

Bases: RelayServerError

Client is missing authentication tokens.