Files
wx-win-agent/node-agent/WxAgent.Core/WxAgentErrorCode.cs
T

31 lines
700 B
C#

namespace WxAgent.Core;
public enum WxAgentErrorCode
{
WechatNotRunning,
WechatNotLoggedIn,
WindowNotFound,
ControlNotFound,
UiStructureChanged,
Timeout,
PermissionMismatch,
SessionLocked,
UnsupportedWechatVersion,
ResultUnconfirmed,
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;
}