Sha256: ee32524dd25586fea4bbc2a487deb1841ef2f43fc17df0c2545ad2079467558e

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.19.0 lib/sentry/interfaces/mechanism.rb
sentry-ruby-5.19.0 lib/sentry/interfaces/mechanism.rb
sentry-ruby-core-5.18.2 lib/sentry/interfaces/mechanism.rb
sentry-ruby-5.18.2 lib/sentry/interfaces/mechanism.rb
sentry-ruby-core-5.18.1 lib/sentry/interfaces/mechanism.rb
sentry-ruby-5.18.1 lib/sentry/interfaces/mechanism.rb
sentry-ruby-5.18.0 lib/sentry/interfaces/mechanism.rb
sentry-ruby-core-5.18.0 lib/sentry/interfaces/mechanism.rb
sentry-ruby-core-5.17.3 lib/sentry/interfaces/mechanism.rb
sentry-ruby-5.17.3 lib/sentry/interfaces/mechanism.rb
sentry-ruby-5.17.2 lib/sentry/interfaces/mechanism.rb
sentry-ruby-core-5.17.2 lib/sentry/interfaces/mechanism.rb