Skip to content

using throw from within then($onRejected) #479

Answered by SimonFrings
quazardous asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @quazardous, this is not a bug and a known behavior, you can read more about it in reactphp/promise#87. You can try to handle the exception by using try catch, but we're aware that this is not the best behavior. As we speak we're in the middle of preparing a new major version (v3), where we also want to introduce better error and exception handling, @clue wrote about this in our wish list ticket here on GitHub : https://github.com/orgs/reactphp/discussions/472#discussioncomment-3880271

I hope this helps 👍

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@quazardous
Comment options

Answer selected by quazardous
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants