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