UNPKG

gnablib

Version:

A lean, zero dependency library to provide a useful base for your project.

2 lines 268 B
/*! Copyright 2024 the gnablib contributors MPL-1.1 */ export class NegativeError extends RangeError{constructor(r,e){super(`${r} should be positive, got ${e}`),this.noun=r,this.value=e}get name(){return"NegativeError"}get[Symbol.toStringTag](){return"NegativeError"}}