Sha256: 81f69c3151331a7491057af0c1c3b386b3ab0ab16c2ce120c39c6b130d6b8e65

Contents?: true

Size: 590 Bytes

Versions: 12

Compression:

Stored size: 590 Bytes

Contents

# frozen_string_literal: true

module Sentry
  class Mechanism < Interface
    # Generic identifier, mostly the source integration for this exception.
    # @return [String]
    attr_accessor :type

    # A manually captured exception has handled set to true,
    # false if coming from an integration where we intercept an uncaught exception.
    # Defaults to true here and will be set to false explicitly in integrations.
    # @return [Boolean]
    attr_accessor :handled

    def initialize(type: "generic", handled: true)
      @type = type
      @handled = handled
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
sentry-ruby-core-5.22.2 lib/sentry/interfaces/mechanism.rb
sentry-ruby-5.22.2 lib/sentry/interfaces/mechanism.rb
sentry-ruby-core-5.22.1 lib/sentry/interfaces/mechanism.rb
sentry-ruby-5.22.1 lib/sentry/interfaces/mechanism.rb
sentry-ruby-5.22.0 lib/sentry/interfaces/mechanism.rb
sentry-ruby-core-5.22.0 lib/sentry/interfaces/mechanism.rb
sentry-ruby-5.21.0 lib/sentry/interfaces/mechanism.rb
sentry-ruby-core-5.21.0 lib/sentry/interfaces/mechanism.rb
sentry-ruby-5.20.1 lib/sentry/interfaces/mechanism.rb
sentry-ruby-core-5.20.1 lib/sentry/interfaces/mechanism.rb
sentry-ruby-5.20.0 lib/sentry/interfaces/mechanism.rb
sentry-ruby-core-5.20.0 lib/sentry/interfaces/mechanism.rb