Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

Catchable fatal ConvertExceptionListener.php on line 51 #13

Open
glaubinix opened this issue Feb 2, 2015 · 0 comments
Open

Catchable fatal ConvertExceptionListener.php on line 51 #13

glaubinix opened this issue Feb 2, 2015 · 0 comments

Comments

@glaubinix
Copy link
Contributor

If the exception constructor has arguments without a default value then the conversion fails, return null and the listener tries to set null for GetResponseForExceptionEvent::setException().

This happens because of:

Example the one which converts to \InvalidArgumentException: https://github.com/glaubinix/silex-no-framework/blob/master/examples/convert_exception.php

I don't think there is a way to handle the such a case. So options are probably, to not convert the exception (but add log entry with failure) or to throw a NoFrameworkConvertException.

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

No branches or pull requests

1 participant