add more details to IdentifiableErrors
This commit is contained in:
parent
687de6f2f0
commit
4540614f7b
8 changed files with 40 additions and 40 deletions
|
|
@ -15,8 +15,8 @@ export class IdentifiableError extends Error {
|
|||
*/
|
||||
public readonly isRetryable: boolean;
|
||||
|
||||
constructor(id: string, message?: string, isRetryable = false) {
|
||||
super(message);
|
||||
constructor(id: string, message?: string, isRetryable = false, options?: ErrorOptions) {
|
||||
super(message, options);
|
||||
this.message = message ?? '';
|
||||
this.id = id;
|
||||
this.isRetryable = isRetryable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue