Skip to content

Conversation

@WyriHaximus
Copy link
Member

@WyriHaximus WyriHaximus commented Feb 27, 2018

This came up during our hangouts call today. At the moment when creating a loop directly when the required extension is missing creating will fail epicly. This proposed PR will throw an BadMethodCallException when the required extension is missing.

@ivkalita
Copy link
Contributor

Isn't it better to create RuntimeException descendant (something like LoopBackendMissedException) and throw it instead of RuntimeException?

@WyriHaximus
Copy link
Member Author

@kaduev13 I would love that, but we're figuring out as a project what and where to place custom exceptions across our packages in the same way.

@WyriHaximus
Copy link
Member Author

@clue @jsor ping updated

@clue clue changed the title Throw RuntimeException on loop creating when required extension isn't installed Throw BadMethodCallException on manual loop creating when required extension isn't installed Mar 13, 2018
Copy link
Member

@clue clue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM 👍

Needs to be rebased on current master and commits should be squashed before merging.

@WyriHaximus
Copy link
Member Author

@clue I'll do that when @jsor also approves 👍

@WyriHaximus WyriHaximus force-pushed the throwing_constructor branch from 5a47d01 to bf2e14b Compare March 13, 2018 12:07
@WyriHaximus WyriHaximus merged commit b94bc8e into reactphp:master Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants