xkcm solutions

developing software out of this world

xkcm solutions

My projects

< Go back to projects

Better Errors

Repository: https://github.com/xkcm/better-errors

Status: Maintained

About this project

Better Errors library provides a BetterError class based on the standard Error class. It extends the standard error with code and metadata properties.

The library also contains a couple of utility functions & decorators to define default values to minimize repeated code and simplify writing custom errors.

Documentation

See full documentation at xkcm.github.io/better-errors

Techstack

Library was created in TypeScript. Tests were written using vitest.