gql.transport.exceptions¶
-
exception
gql.transport.exceptions.
TransportError
¶ Bases:
Exception
Base class for all the Transport exceptions
-
__init__
(*args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
-
args
¶
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
gql.transport.exceptions.
TransportProtocolError
¶ Bases:
gql.transport.exceptions.TransportError
Transport protocol error.
The answer received from the server does not correspond to the transport protocol.
-
__init__
(*args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
-
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:
gql.transport.exceptions.TransportError
The server returned a global error.
This exception will close the transport connection.
-
__init__
(message: str, code: Optional[int] = None)¶ Initialize self. See help(type(self)) for accurate signature.
-
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:
Exception
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)¶ Initialize self. See help(type(self)) for accurate signature.
-
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:
gql.transport.exceptions.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)¶ Initialize self. See help(type(self)) for accurate signature.
-
args
¶
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
gql.transport.exceptions.
TransportAlreadyConnected
¶ Bases:
gql.transport.exceptions.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)¶ Initialize self. See help(type(self)) for accurate signature.
-
args
¶
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-