gql.transport.exceptions¶
- exception gql.transport.exceptions.TransportError¶
Bases:
ExceptionBase class for all the Transport exceptions
- __init__(*args, **kwargs)¶
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception gql.transport.exceptions.TransportProtocolError¶
Bases:
TransportErrorTransport protocol error.
The answer received from the server does not correspond to the transport protocol.
- __init__(*args, **kwargs)¶
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception gql.transport.exceptions.TransportServerError(message: str, code: Optional[int] = None)¶
Bases:
TransportErrorThe server returned a global error.
This exception will close the transport connection.
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception gql.transport.exceptions.TransportQueryError(msg: str, query_id: Optional[int] = None, errors: Optional[List[Any]] = None, data: Optional[Any] = None, extensions: Optional[Any] = None)¶
Bases:
TransportErrorThe server returned an error for a specific query.
This exception should not close the transport connection.
- __init__(msg: str, query_id: Optional[int] = None, errors: Optional[List[Any]] = None, data: Optional[Any] = None, extensions: Optional[Any] = None)¶
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception gql.transport.exceptions.TransportClosed¶
Bases:
TransportErrorTransport is already closed.
This exception is generated when the client is trying to use the transport while the transport was previously closed.
- __init__(*args, **kwargs)¶
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception gql.transport.exceptions.TransportConnectionFailed¶
Bases:
TransportErrorTransport connection failed.
This exception is by the connection adapter code when a connection closed or if an unexpected Exception was received when trying to send a request.
- __init__(*args, **kwargs)¶
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception gql.transport.exceptions.TransportAlreadyConnected¶
Bases:
TransportErrorTransport is already connected.
Exception generated when the client is trying to connect to the transport while the transport is already connected.
- __init__(*args, **kwargs)¶
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.