RequestError
Sub classes¶
| Name | Children | Inherits |
|---|---|---|
| InvalidResponseError aclientp.exceptions The peer answered a request with a result that does not match the method's schema. |
||
| ProtocolVersionError aclientp.exceptions The peer answered ``initialize`` with a protocol version this side does not speak. |
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| Exception builtins Common base class for all non-exit exceptions. |
⋔ Inheritance diagram¶
graph TD
95970857446960["exceptions.RequestError"]
125067848531296["builtins.Exception"]
125067848532160["builtins.BaseException"]
125067848591872["builtins.object"]
125067848531296 --> 95970857446960
125067848532160 --> 125067848531296
125067848591872 --> 125067848532160
🛈 DocStrings¶
Bases: Exception
Raised when a JSON-RPC request fails.
Source code in src/aclientp/exceptions.py
from_error_obj
classmethod
¶
Build an error from a peer's JSON-RPC error object.
Peers are not trusted to send a well-formed object: data is optional per
JSON-RPC 2.0 and code / message may be missing or have the wrong type.
Source code in src/aclientp/exceptions.py
session_not_found
classmethod
¶
-32002 for a request naming a session that does not exist or is not active.
unsupported_protocol_version
classmethod
¶
-32022: no supported protocol version is at or below the requested one.