Created
June 20, 2013 16:35
-
-
Save starrhorne/5824347 to your computer and use it in GitHub Desktop.
How to send an error to HB manually
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
raise "some error" | |
rescue => e | |
# Use one of the two methods below. Not both :) | |
# Use this to ALWAYS send the error to honeybadger regardless of error class | |
Hoenybadger.notify(e) | |
# This will only send the error if it doesn't match any of the exclusion rules | |
Hoenybadger.notify_or_ignore(e) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment