gql.transport.exceptions¶
- exception gql.transport.exceptions.TransportError¶
Bases:
Exception
Base 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:
TransportError
Transport 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:
TransportError
The server returned a global error.
This exception will close the transport connection.
- __init__(message: str, code: Optional[int] = None)¶
- code: Optional[int]¶
- 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:
TransportError
The 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)¶
- query_id: Optional[int]¶
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- errors: Optional[List[Any]]¶
- data: Optional[Any]¶
- extensions: Optional[Any]¶
- exception gql.transport.exceptions.TransportClosed¶
Bases:
TransportError
Transport 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.TransportAlreadyConnected¶
Bases:
TransportError
Transport 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.