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
CommonErrorThe CommonError abstract object to throw an identified error with a solution to the described problem, additional type, and range built on the template.
CommonErrors
CommonErrorsThe CommonErrors object represents the storage of errors with unique identification numbers.
Error
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.
Errors
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.
RangeError
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.
RangeErrors
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.
TypeError
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.
TypeErrors
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.
ValidationError
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.
ValidationErrors
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
Was this helpful?