githubEdit

get max()

The `get` accessor obtains the maximum range

RangeError.prototype.max

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.

range-error.class.ts
public get max(): Max | undefined {
  return this.#max;
}

Return type

Returns

The return value is the maximum range of generic type variable Max or undefinedarrow-up-right.

Example usage

// Example usage.
import { RangeError } from '@angular-package/error';

// Returns "27".
new RangeError('problem', 'Fix accessor.', '(AE:427)', 9, 27).max;

Last updated