Accessors

The `RangeError` object accessors

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

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

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

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

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

Last updated

Was this helpful?