UNPKG

@estarlincito/utils

Version:

A collection of utility functions designed to simplify and speed up development tasks in JavaScript and TypeScript projects.

2 lines (1 loc) 219 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class t extends Error{constructor(r,o){super(r),this.code=o,this.name="AppError"}}const s=(e,r)=>{throw new t(e,r)};exports.handleError=s;