@w5s/errorClassesRangeErrorSur cette pageRangeError Alias to native globalThis.RangeError A RangeError is thrown when trying to pass a value as an argument to a function that does not allow a range that includes the value.@exampleimport { RangeError } from '@w5s/error';try { throw new RangeError("Hello");} catch (e) { console.log(e instanceof RangeError); // true console.log(e.message); // "Hello" console.log(e.name); // "RangeError" console.log(e.stack); // Stack of the error}HierarchyErrorRangeErrorIndex ConstructorsconstructorPropertiesnameConstructors externalconstructornew RangeError(message?: string): RangeErrornew RangeError(message?: string, options?: ErrorOptions): RangeErrorProperties namename: RangeError
Alias to native globalThis.RangeError
A RangeError is thrown when trying to pass a value as an argument to a function that does not allow a range that includes the value.