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

Support zend_throw_exception_object #137

Closed
joehoyle opened this issue May 8, 2022 · 0 comments · Fixed by #214
Closed

Support zend_throw_exception_object #137

joehoyle opened this issue May 8, 2022 · 0 comments · Fixed by #214

Comments

@joehoyle
Copy link
Collaborator

joehoyle commented May 8, 2022

Currently I believe it's not possible to throw exceptions with state / data attached. For example, if I have an AWSException and I want to add a request property with a given value-- as I can't instantiate AWSException and then throw it (only reference a ClassEntry in PhpException::new()`.

I'm not 100% how the API would look for this, but it would be great to be able to instantiate the exception, and throw that via zend_throw_exception_object instead of zend_throw_exception_ex.

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 a pull request may close this issue.

1 participant