Error
TwitterGitHub
v1.0
v1.0
  • 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
  • TypeError {}
  • Accessors
  • Properties
  • Methods

Was this helpful?

  1. TypeError {}

Overview

The `TypeError` object

PreviousExample usageNextGeneric type variables

Last updated 1 year ago

Was this helpful?

TypeError {}

The TypeError object is an extension of the class and is thrown when an operation could not be performed, typically(but not exclusively) when a value is not of the expected type, with the built from the described problem and its solution, optional an explicit identification and type, on the given or stored template.

Accessors

Properties

Methods

public get : string The accessor obtains error name of a type, set to 'TypeError' that is being thrown.

public get : Type | undefined The accessor obtains the type of generic type variable that causes an error to be thrown(or not thrown) if set, otherwise returns .

public get : string The accessor, with the help of , changes the default tag to 'TypeError' for an instance of .

public static : string A template of the error message of type with the replaceable , and optional , , , tags.

: string Private property of the type that causes an error to be thrown(or not thrown).

public static : TypeError<Id, Type> Defines the instance with the built of the given required , and optional and on the given or stored .

public static : value is TypeError<Id, Type> Checks whether the of type is an instance of of any or the given and .

name()
get
string
[Symbol.toStringTag]()
get
toStringTag
TypeError
#type?
string-type
CommonError
message
type()
get
undefined
template
string
define()
TypeError
message
isTypeError()
any
TypeError
error/type-error.class.ts at main · angular-package/errorGitHub
type-error.class.ts
Logo
Type
value
type
identification
problem
fix
id
type
template
{problem}
{fix}
{id}
{max}
{min}
{type}