The `get` accessor obtains error name
Last updated 1 year ago
Was this helpful?
RangeError.prototype.name
The accessor obtains error name of a type, set to 'RangeError' that is being thrown.
'RangeError'
public get name(): string { return 'RangeError'; }
The return value is the error instance name of type.
// Example usage. import { RangeError } from '@angular-package/error'; // Returns "RangeError". new RangeError('problem', 'Fix accessor.').name;
get
string