@vyriy/error
v0.9.3
Published
Shared error utilities for Vyriy projects
Readme
@vyriy/error
Part of Vyriy - a calm architecture toolkit for TypeScript, React, SSR, SSG, APIs, and cloud-ready apps.
Full documentation: https://vyriy.dev/docs/error/
Shared error utilities for Vyriy projects.
Purpose
This package provides small helpers for normalizing unknown caught or rejected values before logging or rethrowing them.
Install
With npm:
npm install @vyriy/errorWith Yarn:
yarn add @vyriy/errorUsage
import { toError } from '@vyriy/error';
try {
await runTask();
} catch (error) {
throw toError(error);
}