Public API
@angular-package/error
Last updated
@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';CommonErrorThe CommonError abstract object to throw an identified error with a solution to the described problem, additional type, and range built on the template.
CommonErrorsThe CommonErrors object represents the storage of errors with unique identification numbers.
ErrorThe 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.
ErrorsThe 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.
RangeErrorThe 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.
RangeErrorsThe 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.
TypeErrorThe 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.
TypeErrorsThe 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.
ValidationErrorThe 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.
ValidationErrorsThe 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