Sha256: c9b7e0fd0ffed952c940148ba51ee7aeac467370ad852ff3e9fe8a4a2dc2b521
Contents?: true
Size: 678 Bytes
Versions: 12
Compression:
Stored size: 678 Bytes
Contents
require 'bugsnag' class CustomError < RuntimeError include Bugsnag::MetaData; end def exception_with_meta_data exception = CustomError.new exception.bugsnag_meta_data = { :exception => { :exception_type => "FATAL", :exception_base => "RuntimeError" } } raise exception end def exception_with_context exception = CustomError.new exception.bugsnag_context = "IntegrationTests" raise exception end def exception_with_hash exception = CustomError.new exception.bugsnag_grouping_hash = "ABCDE12345" raise exception end def exception_with_user_id exception = CustomError.new exception.bugsnag_user_id = "000001" raise exception end
Version data entries
12 entries across 12 versions & 1 rubygems