Skip to content

Instantly share code, notes, and snippets.

@starrhorne
Created June 20, 2013 16:35
Show Gist options
  • Save starrhorne/5824347 to your computer and use it in GitHub Desktop.
Save starrhorne/5824347 to your computer and use it in GitHub Desktop.
How to send an error to HB manually
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