ErrorCode class final
Predefined error codes for common JSON-RPC and ACP-specific errors.
These codes follow the JSON-RPC 2.0 specification for standard errors and use the reserved range (-32000 to -32099) for protocol-specific errors.
- Implemented types
Constructors
- ErrorCode(int value)
-
Validates and creates a ErrorCode value.
factory
- ErrorCode.fromJson(Object? json)
-
Decodes a wire number.
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toAcpJson(
) → AcpJsonNumber -
Converts this protocol value to its immutable JSON representation.
override
-
toJson(
) → int - Encodes the wire number.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override