error-handling-patterns - TypeScript Error Handling Patterns
Robust error handling patterns for TypeScript applications
Tags
Updated: 2026-03-22Capabilities
Typical Inputs
Typical Outputs
What this skill does
- create custom error classes
- validate input data
- handle async errors
- implement retry logic
- log error messages
- wrap async functions
- define error boundaries
- validate schema
Inputs
- error instance
- validation schema
- retry options
- error context
- async function
Outputs
- custom error object
- validation result
- error log
- retry result
- boundary fallback
Requirements
- TypeScript 5+
- Node.js 18+
