Error Handler
Error Handler provides a structured approach to error management across Tauri's Rust backend and React frontend. It covers AppError enum definitions, three-layer error propagation from database through service to command layer, and frontend error handling with try-catch patterns and Ant Design components. The skill includes ErrorBoundary implementation, safe invoke wrappers, and best practices for avoiding panics and unhandled rejections.
Error Handler catches and manages errors across Rust backends and React frontends in Tauri applications.
AI-generated summary based on this skill's SKILL.md
Install
bkywksj/knowledge-base/error-handler · repository language: TypeScript
git clone https://github.com/bkywksj/knowledge-base
cp -r knowledge-base ~/.claude/skills/error-handlergenerated, unverified - the skill's exact subdirectory could not be determined; check the repository on GitHub
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is Error Handler and how does it work?
Error Handler provides a structured approach to error management across Tauri's Rust backend and React frontend. It covers AppError enum definitions, three-layer error propagation from database through service to command layer, and frontend error handling with try-catch patterns and Ant Design components. The skill includes ErrorBoundary implementation, safe invoke wrappers, and best practices for avoiding panics and unhandled rejections.
How do I catch and handle exceptions in Error Handler?
Error Handler enables catching and handling exceptions through a multi-layer approach. On the Rust backend, define AppError enums at the database, service, and command layers, allowing errors to propagate safely upward. On the React frontend, wrap components with ErrorBoundary, use try-catch blocks around async operations, and leverage safe invoke wrappers when calling Tauri commands. This prevents agent failures from interrupting workflows.
Can Error Handler debug errors automatically?
Yes, Error Handler supports debugging and logging errors for troubleshooting agent behavior. Implement error logging at each propagation layer to capture context from database through service to command level. Use frontend error logging to track unhandled rejections and component failures. This structured logging enables you to identify root causes and improve agent reliability.
How does Error Handler implement graceful error recovery?
Error Handler implements graceful error recovery through exception management best practices. Define clear error types in your AppError enum, use safe invoke wrappers to handle command failures, and implement ErrorBoundary components to catch React errors. This approach ensures that errors are caught at appropriate layers, logged for troubleshooting, and handled without causing panics or unhandled rejections that would interrupt workflows.
What error handling framework does Error Handler provide?
Error Handler provides a comprehensive error handling framework spanning Rust backend and React frontend. It includes AppError enum patterns for type-safe error definitions, three-layer error propagation architecture, safe invoke wrappers for command communication, ErrorBoundary components for UI error containment, and logging mechanisms for debugging. This framework prevents agent failures and ensures robust error management across your entire application.
How can I prevent runtime errors from breaking my agents?
Error Handler prevents runtime errors from breaking agents through layered error catching and recovery. Use try-catch patterns around async operations, wrap Tauri command invocations with safe invoke wrappers, and implement ErrorBoundary components in React. The three-layer propagation model ensures errors surface gracefully at the command layer rather than causing panics, allowing your agents to continue operating reliably.