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
  • CommonError
  • CommonErrors
  • Error
  • Errors
  • RangeError
  • RangeErrors
  • TypeError
  • TypeErrors
  • ValidationError
  • ValidationErrors

Was this helpful?

Edit on GitHub
  1. Getting started

Public API

@angular-package/error

PreviousInstallationNextBasic concepts

Last updated 3 years ago

Was this helpful?

Public features that can be imported.

import {
  // Class.
  CommonError,
  CommonErrors,
  Error,
  Errors,
  RangeError,
  RangeErrors,
  TypeError,
  TypeErrors,
  ValidationError,
  ValidationErrors
} from '@angular-package/error';

CommonError

The abstract object to throw an error with a to the described , additional , and built on the .

CommonErrors

The object represents the storage of errors with numbers.

Error

Errors

RangeError

RangeErrors

TypeError

TypeErrors

ValidationError

ValidationErrors

The object is an extension of the class and is thrown when a runtime error occurs with a built from a to the described but with additional identification, on the .

The is an extension of the object that represents multiple identification numbers under which the errors of the type are prepared to throw.

The 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.

The is an extension of the object that represents multiple identification numbers under which the errors of the type are prepared to throw.

The 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.

The is an extension of the object that represents multiple identification numbers under which the errors of the type are prepared to throw.

The object is an extension of the class and is thrown when an operation could not be performed despite proper type(but not exclusively) with the built from the described problem and its solution, along with additional identification on the given or stored template.

The is an extension of the object that represents multiple identification numbers under which the errors of the type are prepared to throw.

Error
CommonError
message
solution
problem
template
Errors
CommonErrors
Error
RangeError
CommonError
RangeErrors
CommonErrors
RangeError
TypeError
CommonError
message
TypeErrors
CommonErrors
TypeError
ValidationError
CommonError
message
ValidationErrors
CommonErrors
ValidationError
CommonError
CommonErrors
identified
solution
problem
type
range
template
unique identification