get id()
The get accessor gets the error identification
CommonError.prototype.id
CommonError.prototype.idpublic get id(): Id | undefined {
return this.#id;
}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 "(AE:427)".
new TestError('problem', 'Fix accessor.', '(AE:427)').id;Last updated