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 nested exceptions for Ruby 2.1. Fixes #118. #136

Merged
merged 1 commit into from
Sep 30, 2014

Conversation

jondeandres
Copy link
Contributor

I've added support for nested exceptions, which where added in Ruby 2.1.

The code checks if the reported exception responds to the #cause method and then loops over the cause exceptions generating an array of traces.

If the number of traces is 1, we send the payload using trace and we use trace_chain if the number of traces is more than 1.

@brianr
Copy link
Member

brianr commented Sep 30, 2014

Looks good!

I spent a little time thinking about the order of the exceptions in the trace_chain, but I think you have it right here.

brianr added a commit that referenced this pull request Sep 30, 2014
Support nested exceptions for Ruby 2.1. Fixes #118.
@brianr brianr merged commit 372543c into rollbar:master Sep 30, 2014
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.

2 participants