A generic type variable constrained by the string, by default of the value captured from the provided optional id indicates the identification type of a new RangeError instance.
A generic type variable constrained by the number and undefined, by default of the value equal to undefined indicates the captured type of the supplied min via the return type.
A generic type variable constrained by the number and undefined, by default of the value equal to undefined indicates the captured type of the supplied max via the return type.
// Example usage.
import { RangeError } from '@angular-package/error';
// Returns
// RangeError: ProblemTE:201: Wrong age => Fix: The value must be between 9 and 27
RangeError.define('Wrong age', 'The value must be', 'TE:201', 9, 27);