Skip to content

add warning in error plugin #157

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
Jan 6, 2019
Merged

add warning in error plugin #157

merged 1 commit into from
Jan 6, 2019

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Jan 6, 2019

warn that the error plugin violates PSR-18

@dbu dbu force-pushed the clarify-error-plugin branch from 2ab0e73 to afa7836 Compare January 6, 2019 09:12
@sagikazarmark sagikazarmark self-requested a review January 6, 2019 09:16
Copy link
Member

@sagikazarmark sagikazarmark left a comment

Choose a reason for hiding this comment

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

👍

@dbu dbu merged commit f9f44c6 into master Jan 6, 2019
@dbu dbu deleted the clarify-error-plugin branch January 6, 2019 09:26
@dbu dbu mentioned this pull request Jan 6, 2019
2 tasks
@gmponos
Copy link
Contributor

gmponos commented Jan 6, 2019

What is your opinion about introducing an ErrorClient instead of an ErrorPlugin? That client can extend only HttpClient..

@gmponos
Copy link
Contributor

gmponos commented Jan 6, 2019

Sorry forget about it... doesn't make any difference.. Since HttpClient extends ClientInterface... so it must be PSR-18 either way...

@dbu
Copy link
Contributor Author

dbu commented Jan 6, 2019

yeah, its a violation of the interface however we produce the exception. but in a smallish application that does not have proper domain exceptions, it can be "good enough" and convenient. if you do several web requests and want to abort the whole thing on (server) error, its easier than checking the return status after each request.

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.

3 participants