zerospin-error

Community

ZerospinError objects for Effect errors

Authormorgs32
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Create and map ZerospinError instances to provide structured, stable error information for Effect-based code in zerospin. This helps when defining error codes/messages, wrapping causes, mapping/catching errors in Effects, or returning structured errors from Effect.gen/Effect.fn or promise boundaries.

Core Features & Use Cases

  • Create ZerospinError objects with a stable code, human-readable message, and optional cause to standardize error handling across asynchronous flows.
  • Map native errors to ZerospinError in Effect pipelines and return them from Effect.gen/Effect.fn when needed.
  • Use in promise boundaries to ensure consistent error shape and metadata throughout the codebase.

Quick Start

Instantiate a ZerospinError with a stable code and message when an error occurs, e.g., new ZerospinError({ code: 'resource-not-found', message: 'Resource not found', cause: error }).

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: zerospin-error
Download link: https://github.com/morgs32/skills/archive/main.zip#zerospin-error

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.