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

Version Path
bugsnag-6.15.0 features/fixtures/plain/app/exception_data/crash.rb
bugsnag-6.14.0 features/fixtures/plain/app/exception_data/crash.rb
bugsnag-6.13.1 features/fixtures/plain/app/exception_data/crash.rb
bugsnag-6.13.0 features/fixtures/plain/app/exception_data/crash.rb
bugsnag-6.12.2 features/fixtures/plain/app/exception_data/crash.rb
bugsnag-6.12.1 features/fixtures/plain/app/exception_data/crash.rb
bugsnag-6.12.0 features/fixtures/plain/app/exception_data/crash.rb
bugsnag-6.11.1 features/fixtures/plain/app/exception_data/crash.rb
bugsnag-6.11.0 features/fixtures/plain/app/exception_data/crash.rb
bugsnag-6.10.0 features/fixtures/plain/app/exception_data/crash.rb
bugsnag-6.9.0 features/fixtures/plain/app/exception_data/crash.rb
bugsnag-6.8.0 features/fixtures/plain/app/exception_data/crash.rb