Skip to content

Throw BadMethodCallException on manual loop creating when required extension isn't installed #153

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

Merged
merged 1 commit into from
Mar 13, 2018

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy