Skip to content

use own tarn error classes instead of generic Error#84

Open
erehulka wants to merge 1 commit into
Vincit:masterfrom
erehulka:use-tarn-error-class
Open

use own tarn error classes instead of generic Error#84
erehulka wants to merge 1 commit into
Vincit:masterfrom
erehulka:use-tarn-error-class

Conversation

@erehulka
Copy link
Copy Markdown

Closes #83

Summary

Implements typed, exportable errors for pool-related failures as requested in #83.

Existing code that only checks err.message === 'aborted' or string messages for PoolError continues to work. New code can use instanceof PendingOperationError, instanceof TimeoutError, instanceof PoolError, or instanceof TarnError without parsing messages.

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.

Feature request: export typed errors (e.g. TarnError) for pool async failures

1 participant