errore
CommunityType-safe errors as values, no exceptions.
Software Engineering#type safety#typescript#error handling#pattern matching#result type#tagged errors
Authorcode-xhyun
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a robust, type-safe way to handle errors in TypeScript, eliminating the need for traditional try-catch blocks and promoting a more predictable and maintainable codebase.
Core Features & Use Cases
- Errors as Values: Functions return
Error | Valueunions, making error handling explicit and compile-time checked. - Tagged Errors: Define custom, strongly-typed errors with interpolated messages and properties.
- Exhaustive Matching: Use
matchErrorfor compile-time guaranteed handling of all possible error states. - Use Case: When building an API, ensure that every potential error (e.g.,
NotFoundError,ValidationError,DatabaseError) is explicitly handled by the caller, preventing runtime crashes and improving reliability.
Quick Start
Use the errore skill to define a NotFoundError class and handle it when fetching a user.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferencesassets
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: errore Download link: https://github.com/code-xhyun/disunday/archive/main.zip#errore Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.