Public API

@angular-package/error

Public features that can be imported.

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

CommonError

The CommonError abstract object to throw an identified error with a solution to the described problem, additional type, and range built on the template.

CommonErrors

The CommonErrors object represents the storage of errors with unique identification numbers.

Error

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

Errors

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

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.

RangeErrors

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

TypeError

The TypeError object is an extension of the CommonError 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 message built from the described problem and its solution, optional an explicit identification and type, on the given or stored template.

TypeErrors

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

ValidationError

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

ValidationErrors

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

Last updated