Overview
The `CommonError` abstract object to throw an identified error with a solution to the described problem
Last updated
The `CommonError` abstract object to throw an identified error with a solution to the described problem
Last updated
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.
public get id(): Id | undefined
The get
accessor gets the error identification by returning the #id
property of a specified object.
public get template(): string
The get
accessor gets the template of the error message by returning the #template
property of a specified object.
#id?: Id
A privately stored unique identification of the described problem of generic type variable Id
.
protected static defineMessage(): string
The static "tag" method builds from the given values
the error message of a string
type on the template.
protected static isError(): value is CommonError<Id>
Checks whether the value
of any type is a this
instance of any or the given identification.