RSIMEngineErrorCode class abstract

Modern 对外接口返回的 Rust RcimEngineError 原生错误码。

RCIMIWEngine 等对外接口不再返回 legacy 合成码 -101 / -102 / -103 / -104,失败时统一返回这里的原生码(成功仍为 success)。取值直接引用私有 ABI 常量,避免在业务代码里散落字面量;_RcimEngineError 的完整镜像仍保持私有。

与 ErrorCode(src/internal/error_code.dart)的分工:ErrorCode 是完整的 Rust 错误码表,供内部透传具体码(如 DatabaseTargetNotFound)时引用;本类只覆盖 对外契约级的通用返回码,规模小、语义稳定,并由 test/dart/rsim_engine_error_code_test.dart 同时校验它与 rcim_client.h 及 ErrorCode 的取值一致,避免三处漂移。

Constructors

RSIMEngineErrorCode()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

engineDropped → const int
调用接口时引擎已释放或不可用。语义对应 legacy 的 -102。
invalidArgumentCount → const int
传入的 count 非法。语义对应 legacy 的 -101,但精确到 count 越界。
invalidParameter → const int
通用参数错误。语义对应 legacy 的 -101,等价 RcimEngineError_InvalidParameter(「开发者接口调用时传入的参数错误」)。
success → const int
成功。对外接口返回该值时表示调用已被接受。
unknownServerError → const int
未知异常。语义对应 legacy 的 -103 / -104。