Overview
The `RangeError` object
Last updated
The `RangeError` object
Last updated
RangeError {}
The RangeError
object is an extension of the CommonError
class and is thrown when a value is not in the set or range of allowed values with the message built from the described problem and its solution, optional explicit identification and minimum/maximum range on the given or stored template.
public get : Max | undefined The accessor obtains the maximum range of generic type variable that causes an error to be thrown(or not thrown), if set, otherwise returns .
public get : Min | undefined The accessor obtains the minimum range of generic type variable that causes an error to be thrown(or not thrown), if set, otherwise returns .
public get : string
Error name of a type, set to 'RangeError'
that is being thrown.
public get : { min?: Min; max?: Max } The accessor obtains the and range in the form of an .
public get : string
The accessor, with the help of , changes the default tag to 'RangeError'
for an instance of .
public static : string A template of the error message of type with the replaceable , and optional , , tags.
: Max Private property of the of generic type variable that causes an error to be thrown(or not thrown).
: Min Private property of the of generic type variable that causes an error to be thrown(or not thrown).
public static : RangeError<Id, Min, Max> Defines the instance with the built from the given required , and optional , , on the given or stored .
public static : value is RangeError<Id, Min, Max> Checks whether the of type is an instance of of any or the given / range and .