fix: address CodeRabbit findings on query/transport error handling

This commit is contained in:
Tom Boucher
2026-05-04 21:47:10 -04:00
parent 1642f47908
commit 40acf1f02e
6 changed files with 38 additions and 10 deletions

View File

@@ -22,7 +22,7 @@ export class GSDToolsError extends Error {
) {
super(message, options);
this.name = 'GSDToolsError';
this.classification = options?.classification;
this.classification = options?.classification ?? failureClassification();
}
static timeout(
@@ -61,5 +61,5 @@ export class GSDToolsError extends Error {
);
}
public readonly classification?: GSDToolsErrorClassification;
public readonly classification: GSDToolsErrorClassification;
}