get link()
The get accessor gets the link(to read more about the thrown error)
CommonError.prototype.link
CommonError.prototype.linkpublic get link(): string | undefined {
return this.#link;
}Return type
Returns
Example usage
// Example usage.
import { CommonError } from '@angular-package/error';
// Extend the `CommonError` class.
class TestError<Id extends string> extends CommonError<Id> {}
// Returns "http://duckduckgo.com".
new TestError('problem', 'Fix accessor.', '(AE:427)', undefined, {
link: 'http://duckduckgo.com',
}).link;Last updated