Skip to content

feat(errors): typed error hierarchy + isConduitError guard (#624) - #653

Merged
Jaydbrown merged 4 commits into
conduit-protocol:mainfrom
ZacLou:feat-typed-error-hierarchy-624
Aug 31, 2026
Merged

feat(errors): typed error hierarchy + isConduitError guard (#624)#653
Jaydbrown merged 4 commits into
conduit-protocol:mainfrom
ZacLou:feat-typed-error-hierarchy-624

Conversation

@ZacLou

@ZacLou ZacLou commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Closes #624

  • Documents the existing contract/network/indexer error classes with JSDoc examples.
  • Adds OperationAbortedError for caller-initiated aborts via AbortSignal.
  • Exports isConduitError(x) as a runtime type guard that recognises every Conduit SDK error by name.
  • Replaces the generic DOM AbortError throws in builder.ts and indexer.ts with the new typed error so consumers can distinguish cancellation from failure.

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.

Typed error hierarchy + isConduitError guard

2 participants