Sha256: d987b10b43c3379ed8c915182e9cba412b2c51e02fec1355fdcff8b466f5ad08

Contents?: true

Size: 362 Bytes

Versions: 8

Compression:

Stored size: 362 Bytes

Contents

require 'raven/interfaces'

module Raven
  class SingleExceptionInterface < Interface

    attr_accessor :type
    attr_accessor :value
    attr_accessor :module
    attr_accessor :stacktrace

    def to_hash(*args)
      data = super(*args)
      if data[:stacktrace]
        data[:stacktrace] = data[:stacktrace].to_hash
      end
      data
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sentry-raven-0.15.2 lib/raven/interfaces/single_exception.rb
sentry-raven-0.15.1 lib/raven/interfaces/single_exception.rb
sentry-raven-0.15.0 lib/raven/interfaces/single_exception.rb
sentry-raven-0.14.0 lib/raven/interfaces/single_exception.rb
sentry-raven-0.13.3 lib/raven/interfaces/single_exception.rb
sentry-raven-0.13.2 lib/raven/interfaces/single_exception.rb
sentry-raven-0.13.1 lib/raven/interfaces/single_exception.rb
sentry-raven-0.13.0 lib/raven/interfaces/single_exception.rb