Skip to content

ErrorMessage

Base classes

Name Children Inherits
JsonRPCMessage
aclientp.schema.messages
JSON-RPC 2.0 message.

⋔ Inheritance diagram

graph TD
  95970860683088["messages.ErrorMessage"]
  95970860198832["messages.JsonRPCMessage"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970860198832 --> 95970860683088
  95970862254416 --> 95970860198832
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: JsonRPCMessage

A message (request, response, or notification) with "jsonrpc": "2.0".

Specified as required by JSON-RPC 2.0 Specification.

Source code in src/aclientp/schema/messages.py
class ErrorMessage(JsonRPCMessage):
    """A message (request, response, or notification) with `"jsonrpc": "2.0"`.

    Specified as
    [required by JSON-RPC 2.0 Specification][1].

    [1]: https://www.jsonrpc.org/specification#compatibility
    """

    id: int | str | None = None
    """JSON RPC Request Id."""

    error: Error

id class-attribute instance-attribute

id: int | str | None = None

JSON RPC Request Id.

:fa-brands-github: Show source on GitHub