pub enum ErrorCode {
StaleRef,
NotFound,
PermDenied,
Timeout,
Ambiguous,
NotActionable,
AssertionFailed,
Protocol,
Internal,
Aborted,
}Expand description
机器可读错误码(docs/06 §4 错误码表,全集变更属 spec 提交)。
Variants§
StaleRef
ref 失效(fallback 链已穷尽)→ agent 应重新 snapshot
NotFound
选择器无匹配 → 用 find 放宽条件
PermDenied
权限不足(UIPI/管理员窗口)→ 提示用户,勿重试
Timeout
wait/谓词超时 → 重估前置状态
Ambiguous
匹配到多个元素 → 收紧条件
NotActionable
元素存在但不可操作(disabled/offscreen)→ 先 scroll/focus;hint 会指向 set-value
AssertionFailed
verify/–expect 断言未成立 → 检查前置步骤
Protocol
协议/参数错误(不可恢复)→ 修正命令参数
Internal
内部/UIA/系统层错误 → 重试一次;持续出现附 evidence 报 issue
Aborted
用户主动停止(紧急热键/停止文件)→ 清除停止标志后可安全重试
Implementations§
Trait Implementations§
impl Copy for ErrorCode
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more