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

Fix ExceptionListener: exception to log isn't necessarily a BaseException instance #693

Conversation

ogizanagi
Copy link
Contributor

@javiereguiluz
Copy link
Collaborator

This seems like a "very edgy edge-case", but still it's better to always do the right thing. Thanks!

@javiereguiluz javiereguiluz merged commit 549c7f8 into EasyCorp:master Dec 27, 2015
javiereguiluz added a commit that referenced this pull request Dec 27, 2015
…BaseException instance (ogizanagi)

This PR was merged into the master branch.

Discussion
----------

Fix ExceptionListener: exception to log isn't necessarily a BaseException instance

For instance [when an exception occurs when trying to render the exception template](https://github.com/javiereguiluz/EasyAdminBundle/blob/master/EventListener/ExceptionListener.php#L117-L120).

Commits
-------

549c7f8 Fix ExceptionListener: exception to log isn't necessarily a BaseException instance
@ogizanagi ogizanagi deleted the fix_exception_listener_not_a_base_exception branch December 27, 2015 19:00
@ogizanagi
Copy link
Contributor Author

@javiereguiluz: As the exception template will be customizable, this is not such a edgy case 😄
Actually, a RuntimeException happening during the rendering of the template would have led to a Fatal error: Call to undefined method RuntimeException::getStatusCode().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants