Accessors

The `RangeError` object accessors

public get max(): Max | undefined The get accessor obtains the maximum range of generic type variable Max that causes an error to be thrown(or not thrown), if set, otherwise returns undefined.

public get min(): Min | undefined The get accessor obtains the minimum range of generic type variable Min that causes an error to be thrown(or not thrown), if set, otherwise returns undefined.

public get name(): string Error name of a string type, set to 'RangeError' that is being thrown.

public get range(): { min?: Min; max?: Max } The get accessor obtains the minimum and maximum range in the form of an object.

public get [Symbol.toStringTag](): string The get accessor, with the help of toStringTag, changes the default tag to 'RangeError' for an instance of RangeError.

Last updated