Skip to content

Error

Base classes

Name Children Inherits
Schema
aclientp.schema.v2.base
Base class of all v2 models.

⋔ Inheritance diagram

graph TD
  95970870112304["common.Error"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970855946400 --> 95970870112304
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: Schema

A JSON-RPC error object.

Source code in src/aclientp/schema/v2/common.py
class Error(Schema):
    """A JSON-RPC error object."""

    code: ErrorCode
    """The error type, e.g. :data:`INVALID_PARAMS`."""

    message: str
    """A short, single-sentence description of the error."""

    data: ErrorData | MISSING | None = MISSING
    """Additional information about the error."""

code instance-attribute

code: ErrorCode

The error type, e.g. :data:INVALID_PARAMS.

data class-attribute instance-attribute

data: ErrorData | MISSING | None = MISSING

Additional information about the error.

message instance-attribute

message: str

A short, single-sentence description of the error.

:fa-brands-github: Show source on GitHub