Skip to content

extstore/surface exstore errors in client - #2260

Open
cconstable wants to merge 4 commits into
mainfrom
extstore/surface-exstore-errors-in-client
Open

extstore/surface exstore errors in client#2260
cconstable wants to merge 4 commits into
mainfrom
extstore/surface-exstore-errors-in-client

Conversation

@cconstable

@cconstable cconstable commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

What was changed

  • Added new ExternalStorageError base type and a small set of high-level external storage errors
  • Client surfaces that raise errors now properly handle extstore errors

Why?

Previously, surfacing external storage errors from client logic meant that callers would see the new extstore error type which could break compatibility. This PR patches the error types that are thrown to include a cause where upstream errors can be put. This means we can move the extstore calls back inside the try/catch blocks, catch them meaningfully, and still throw consistent error types.

Checklist

  • Added tests

@cconstable
cconstable requested a review from a team as a code owner July 24, 2026 22:25
Comment thread packages/common/src/errors.ts Outdated
@cconstable
cconstable force-pushed the extstore/surface-exstore-errors-in-client branch from ea9589f to 051eed6 Compare July 27, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants