Expand description
Unified application error type and IPC error envelope.
AppError is the only error type that crosses the Tauri IPC boundary.
It serialises to { kind, message, retryable, details? } so the frontend
can map kind to a presentation policy (toast / inline / notification-log)
without parsing message.
§OCP contract
Adding a new variant only requires:
- A new variant arm in
AppError. - A new inner struct
<Variant>Details(when the variant carries data). - A new arm in the exhaustive
matchinsideSerialize. No existing arms change. The envelope shape{ kind, message, retryable, details }is stable.
Structs§
- Access
Denied Details - Details for
AppError::AccessDenied. - Auth
Details - Details for
AppError::Auth. - Conflict
Details - Details for
AppError::Conflict. - Internal
Details - Details for
AppError::Internal. - Locked
Details - Details for
AppError::Locked. - Network
Details - Details for
AppError::Network. - NotFound
Details - Details for
AppError::NotFound. - Provider
Specific Details - Details for
AppError::ProviderSpecific. - Rate
Limited Details - Details for
AppError::RateLimited. - Unsupported
Details - Details for
AppError::Unsupported. - Validation
Details - Details for
AppError::Validation.
Enums§
- AppError
- All errors that can leave a Tauri command.