For the complete documentation index, see llms.txt. This page is also available as Markdown.

get link()

The get accessor gets the link(to read more about the thrown error)

The get accessor gets the link(to read more about the thrown error) by returning the #link property of a specified object.

common-error.class.ts
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