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-raise exceptions in test and development environments based on a config option #448

Closed
ArturMoczulski opened this issue Apr 17, 2019 · 0 comments · Fixed by #449
Closed
Assignees
Labels
Type: Enhancement Changes that add to, improve upon, enhance, or extend the existing component.

Comments

@ArturMoczulski
Copy link
Contributor

A commonly requested feature is being able to re-raise exceptions in test and development environments based on a config option. The user wants to use the following code:

try {
  do_something_that_might_raise();
} catch(\Exception $ex) {
  Rollbar::log(Log::ERROR, $ex);
}

And have it:

  • report to Rollbar and swallow the exception in production,
  • report to Rollbar and re-raise the exception in dev or test (to not have false positive tests)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Changes that add to, improve upon, enhance, or extend the existing component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant