Skip to main content

Module error

Module error 

Source
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:

  1. A new variant arm in AppError.
  2. A new inner struct <Variant>Details (when the variant carries data).
  3. A new arm in the exhaustive match inside Serialize. No existing arms change. The envelope shape { kind, message, retryable, details } is stable.

Structs§

AccessDeniedDetails
Details for AppError::AccessDenied.
AuthDetails
Details for AppError::Auth.
ConflictDetails
Details for AppError::Conflict.
InternalDetails
Details for AppError::Internal.
LockedDetails
Details for AppError::Locked.
NetworkDetails
Details for AppError::Network.
NotFoundDetails
Details for AppError::NotFound.
ProviderSpecificDetails
Details for AppError::ProviderSpecific.
RateLimitedDetails
Details for AppError::RateLimited.
UnsupportedDetails
Details for AppError::Unsupported.
ValidationDetails
Details for AppError::Validation.

Enums§

AppError
All errors that can leave a Tauri command.