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

Re-throw exception to invoke the native handler when a custom handler… #421

Merged
merged 1 commit into from
Mar 1, 2017

Conversation

BabakMN
Copy link
Contributor

@BabakMN BabakMN commented Feb 28, 2017

This change causes captured exceptions to be propagated up to the native exception handler (re-thrown).

This behaviour is on by default and is controlled by a boolean variable passed to the registerExceptionHandler on the ErrorHandler.

Right now exceptions are propagated to the existing exception handler if one exists (other than the native handler, meaning a custom function has been set using set_exception_handler).

However if no custom exception handler is set exceptions will not propagate further than Sentry's handler. In other words exceptions are captured by Sentry but not re-thrown.

Because of this change in behaviour some may consider this a breaking change so we should consider the effects of it before release.

Because right now exceptions are not re-thrown the application is allowed to continue to execute and some applications may have unfortunately become dependent on this behaviour.

Those applications will face Uncaught Exception fatal errors if this change is activated for them.

Related issue: #407

@dcramer
Copy link
Member

dcramer commented Mar 1, 2017

looks like the build is just failing due to lint -- theres a composer task to run the cs linter which will auto fix syntax so we just need to run that

@dcramer
Copy link
Member

dcramer commented Mar 1, 2017

I'm actually going to go ahead and fix the lint bits and get it merged in since its quick. Thanks!

@dcramer dcramer merged commit 77916b0 into getsentry:master Mar 1, 2017
@BabakMN
Copy link
Contributor Author

BabakMN commented Mar 2, 2017

Thank you. Travis was having an outage earlier so I couldn't see why the build was failing (page was stuck with a loading indicator forever).

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 this pull request may close these issues.

None yet

2 participants