Error
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| Schema aclientp.schema.base Base class for generated models. |
⋔ Inheritance diagram¶
graph TD
95970858459616["common.Error"]
95970862254416["base.Schema"]
95970851503232["main.BaseModel"]
125067848591872["builtins.object"]
95970862254416 --> 95970858459616
95970851503232 --> 95970862254416
125067848591872 --> 95970851503232
🛈 DocStrings¶
Bases: Schema
JSON-RPC error object.
Represents an error that occurred during method execution, following the JSON-RPC 2.0 error object specification with optional additional data.
See protocol docs: JSON-RPC Error Object
Source code in src/aclientp/schema/common.py
code
instance-attribute
¶
code: ErrorCode
A number indicating the error type that occurred.
This must be an integer as defined in the JSON-RPC specification.
data
class-attribute
instance-attribute
¶
Optional primitive or structured value that contains additional errorinformation.
This may include debugging information or context-specific details.
message
instance-attribute
¶
A string providing a short description of the error.
The message should be limited to a concise single sentence.