get problem()
The get accessor gets the problem
CommonError.prototype.problem
CommonError.prototype.problem
The get
accessor gets the problem by returning the #problem
property of a specified object.
public get problem(): string {
return this.#problem;
}
Return type
Returns
The return value is the problem of a string
type.
Example usage
// Example usage.
import { CommonError } from '@angular-package/error';
// Extend the `CommonError` class.
class TestError<Id extends string> extends CommonError<Id> {}
// Returns "Problem accessor."
new TestError('Problem accessor.', 'Fix accessor.', '(AE:427)').problem;
Last updated
Was this helpful?