get link()
The get accessor gets the link(to read more about the thrown error)
CommonError.prototype.link
CommonError.prototype.linkThe get accessor gets the link(to read more about the thrown error) by returning the #link property of a specified object.
public get link(): string | undefined {
return this.#link;
}Return type
The return type is a string type or undefined.
Returns
The return value is the link of a string type or undefined.
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
Was this helpful?