Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement onUncaughtError event for thread pools #1777

Open
wants to merge 6 commits into
base: 8.3.0-Dev
Choose a base branch
from

Conversation

player-03
Copy link
Contributor

This handles errors thrown from the other thread. In 8.1.0 and earlier, such errors weren't handled at all. In 8.2.0 prior to this PR, we caught the errors and dispatched them as onError events.

This PR distinguishes the two sources of error (throw and sendError()), and also enables the user to get the stack trace for a thrown error.

If the user doesn't add a listener, we instead use Log.error() to ensure that something shows up in the console. (We don't want to suddenly start hiding errors.)

@player-03 player-03 changed the base branch from 8.2.0-Dev to 8.3.0-Dev August 24, 2024 00:33
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.

1 participant