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

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The exact wire number.
final

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