Constructor

The `RangeErrors` constructor

RangeErrors()

Creates the RangeErrors instance of unique identification numbers under which the RangeError objects are stored.

range-errors.class.ts
constructor(...id: Id[]) {
  super(...id);
}

Parameters

...id:Id[]

A rest parameter of generic type variable Id indicates unique identification numbers under which the RangeError objects are stored.

Example usage

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

// Returns RangeErrors {}
new RangeErrors('RE: 4332', 'RE: 4331', 'RE: 4330');

// Returns RangeErrors {}
new RangeErrors('RV: 332', 'RV: 331', 'RV: 330');

Last updated