static define()
Defines the `Error` instance.
Error.define()
Error.define()public static define<Id extends string>(
problem: string,
fix: string,
id?: Id,
template = Error.template
): Error<Id> {
return new this(problem, fix, id, template);
}Generic type variables
Parameters
problem:string
problem:stringfix:string
fix:stringid?:Id
id?:Idtemplate =Error.template
template =Error.templateReturn type
Returns
Example usage
Last updated