Files
wx-win-agent/node-agent/WxAgent.Core/WxAgentErrorCode.cs
T
rogee 13c31fc902
Build web service image / build (push) Successful in 1m53s
feat: add remote control plane and whitelist reads
2026-09-12 09:46:05 +08:00

32 lines
731 B
C#

namespace WxAgent.Core;
public enum WxAgentErrorCode
{
WechatNotRunning,
WechatNotLoggedIn,
WindowNotFound,
ControlNotFound,
UiStructureChanged,
Timeout,
PermissionMismatch,
SessionLocked,
UnsupportedWechatVersion,
ResultUnconfirmed,
AccountContextUnconfirmed,
OperationCancelled,
InvalidOperationState,
DataRootNotFound,
ProcessAccessDenied,
DatabaseKeyNotFound,
DatabaseOpenFailed,
ClipboardUnavailable,
InvalidArgument,
FeatureUnavailable
}
public sealed class WxAgentException(WxAgentErrorCode code, string message, Exception? innerException = null)
: Exception(message, innerException)
{
public WxAgentErrorCode Code { get; } = code;
}