Error
TwitterGitHub
Draft
Draft
  • Introduction
  • ❤ Benefits
  • General concepts
  • Getting started
    • Skeleton
    • Installation
      • npm
    • Public API
    • Basic concepts
  • CommonError {}
    • Overview
    • Generic type variables
    • Constructor
    • Accessors
      • get fix()
      • get id()
      • get link()
      • get message()
      • get problem()
      • get template()
    • Properties
      • static template
      • #fix
      • #id?
      • #link?
      • #problem
      • #template
    • Methods
      • static defineMessage()
      • static isError()
  • CommonErrors {}
    • Overview
    • Generic type variables
    • Constructor
    • Accessors
      • get errors()
    • Properties
      • static template?
      • #id?
      • #errors
    • Methods
      • delete()
      • has()
      • throw()
      • isAllowedId()
  • Error {}
    • Overview
    • Generic type variables
    • ★ Constructor
    • Accessors
      • get name()
      • get [Symbol.toStringTag]()
    • Methods
      • static define()
      • static isError()
  • Errors {}
    • Overview
    • Generic type variables
    • Constructor
    • Methods
      • get()
      • getErrors()
      • set()
    • Example usage
  • RangeError {}
    • Overview
    • Generic type variables
    • ★ Constructor
    • Accessors
      • get max()
      • get min()
      • get name()
      • get range()
      • get [Symbol.toStringTag]()
    • Properties
      • static template
      • #max?
      • #min?
    • Methods
      • static define()
      • static isRangeError()
  • RangeErrors {}
    • Overview
    • Generic type variables
    • Constructor
    • Methods
      • get()
      • getErrors()
      • set()
    • Example usage
  • TypeError {}
    • Overview
    • Generic type variables
    • ★ Constructor
    • Accessors
      • get name()
      • get type()
      • get [Symbol.toStringTag]()
    • Properties
      • static template
      • #type?
    • Methods
      • static define()
      • static isTypeError()
  • TypeErrors {}
    • Overview
    • Generic type variables
    • Constructor
    • Methods
      • get()
      • getErrors()
      • set()
  • ValidationError {}
    • Overview
    • Generic type variables
    • ★ Constructor
    • Accessors
      • get name()
      • get [Symbol.toStringTag]()
    • Methods
      • static define()
      • static isValidationError()
  • ValidationErrors {}
    • Overview
    • Generic type variables
    • Constructor
    • Methods
      • get()
      • getErrors()
      • set()
  • Change log
    • Keep a changelog
    • CHANGELOG.md
    • v3.0.0-rc
  • GIT
    • Commit
    • Semantic Versioning
  • License
    • MIT
  • Social
    • Gettr
    • Twitter
    • YouTube
  • Contact
    • ⋯ Chat
    • @ Email
    • ✆ Phone
  • Donate
    • ฿ Cryptocurrency
    • $ Fiat
Powered by GitBook
On this page
  • RangeError {}
  • Accessors
  • Properties
  • Methods

Was this helpful?

Edit on GitHub
  1. RangeError {}

Overview

The `RangeError` object

PreviousExample usageNextGeneric type variables

Last updated 3 years ago

Was this helpful?

RangeError {}

The RangeError object is an extension of the 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.

Accessors

Properties

Methods

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 .

name()
string
range()
get
minimum
maximum
object
[Symbol.toStringTag]()
get
toStringTag
RangeError
CommonError
max()
get
undefined
min()
get
undefined
template
string
#max?
#min?
define()
RangeError
message
isRangeError()
any
RangeError
value
minimum
maximum
identification
maximum range
minimum range
{problem}
{fix}
{id}
{max}
{min}
Logoerror/range-error.class.ts at main · angular-package/errorGitHub
range-error.class.ts
Max
Min
Max
Min
problem
fix
id
max
min
template