You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.
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().
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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
QafooLabsNoFrameworkBundle/src/QafooLabs/Bundle/NoFrameworkBundle/EventListener/ConvertExceptionListener.php
Line 70 in 1f782cf
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.
The text was updated successfully, but these errors were encountered: