What problem does it solve?
This skill establishes a unified error handling strategy for Tauri applications, aligning Rust backend errors with frontend error reporting to prevent crashes and provide consistent user feedback.
Core Features & Use Cases
- Unified error type across backend (Rust) and frontend (React) to standardize error messaging.
- Three-layer error propagation (Database/Service/Command) with safe conversions and explicit NotFound/InvalidInput variants.
- Safe concurrency handling using map_err to convert Mutex poisoning into AppError.
- React-side error management with an ErrorBoundary, try-catch around tauri.invoke, and a global error handling hook.
- Practical scenarios include retrieving configuration, reading files, and propagating meaningful errors to the UI.
Quick Start
Describe and implement a robust end-to-end error handling workflow for a Tauri app, covering Rust error types, IPC error mapping, and React error recovery.