set()
Sets the `TypeError` object under the given `id`
Last updated
Was this helpful?
Sets the `TypeError` object under the given `id`
Last updated
Was this helpful?
TypeErrors.prototype.set()
Sets the object with the message built from the given required , , and optional on the given or stored under the given .
ErrorId
extends
A generic type variable ErrorId
constrained by the generic type variable of the object indicates the type picked from the and its exact type is useful in picking the specific error from the storage.
template =
TypeErrors
.template
this
Description of the problem of a type.
A solution to the given of a type.
The unique identification to the given of generic type variable .
The optional type of type that causes an error to be thrown(or not thrown).
A template of error message with the replaceable , ,, and optional tags. By default, the value is equal to the static property TypeErrors.template
.