The get accessor gets the template of the error message
Last updated 1 year ago
Was this helpful?
CommonError.prototype.template
The accessor gets the of the error message by returning the property of a specified object.
public get template(): string { return this.#template; }
The return value is the of a type.
// Example usage. import { CommonError } from '@angular-package/error'; // Extend the `CommonError` class. class TestError<Id extends string> extends CommonError<Id> {} // Returns "{problem} {fix} {id}". new TestError( 'Problem accessor.', 'Fix accessor.', '(AE:427)', '{problem} {fix} {id}' ).template;
get
#template
string