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

do not hide Exceptions from custom handlers but correctly handle null #1169

Merged
merged 1 commit into from
Mar 14, 2020

Conversation

Hikariii
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
Doc updated no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #1168
License MIT

This solve the issue of #1168 by catching and handling the specific NotAcceptableException case. All other Exceptions are not caught so Exceptions thrown in handlers are visible as requested.

@Hikariii Hikariii force-pushed the customHandlerExceptions branch 3 times, most recently from 46ea978 to 693717f Compare March 11, 2020 13:57
@Hikariii
Copy link
Contributor Author

Travis is failing for a reason that does not seem related to this PR: https://travis-ci.org/github/schmittjoh/serializer/jobs/661093321#L318

@goetas
Copy link
Collaborator

goetas commented Mar 12, 2020

Thanks for your contribution. This is something that should be fixed. The approach is ok, I've left just few comments on the tests.

@Hikariii Hikariii force-pushed the customHandlerExceptions branch from 693717f to 96e0c6c Compare March 13, 2020 10:16
@Hikariii Hikariii force-pushed the customHandlerExceptions branch from 96e0c6c to 887b8d5 Compare March 13, 2020 10:21
@Hikariii Hikariii force-pushed the customHandlerExceptions branch from 887b8d5 to 61eb3d7 Compare March 13, 2020 10:23
@goetas goetas merged commit 80c71ca into schmittjoh:master Mar 14, 2020
@goetas
Copy link
Collaborator

goetas commented Mar 14, 2020

thanks

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.

2 participants