chore: 保存工作副本——客户端授权新契约(双端点/验签/令牌/周检)与桌面会话可靠性改进
This commit is contained in:
1 parent
f71eef0eba
commit
ae6093c9b3
163 files changed
+4911
-2494
No files matched your search
@@ -1,9 +1,11 @@
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum DomainError {
|
||||
#[error("resource not found: {0}")]
|
||||
NotFound(String),
|
||||
#[error("operation is not available: {0}")]
|
||||
Unsupported(String),
|
||||
/**
|
||||
* Stable IPC error codes. The renderer maps `errors:native.*` (and other
|
||||
* `errors:` keys that match these dotted paths). Command envelopes may also
|
||||
* still carry a human `error` string for logs.
|
||||
*/
|
||||
pub mod codes {
|
||||
pub const TASK_JOIN: &str = "native.taskJoin";
|
||||
pub const INVALID_BASE64: &str = "native.invalidBase64";
|
||||
pub const KNOWN_HOSTS_PATH: &str = "native.knownHostsPath";
|
||||
pub const INVALID_HOST_KEY_DECISION: &str = "native.invalidHostKeyDecision";
|
||||
}
|
||||
Reference in new issue
Block a user