Sha256: 711cbbf27dedc5a38cddf1bf79c01d23a3320201c681ed28f0a0bf08ccb15090

Contents?: true

Size: 435 Bytes

Versions: 8

Compression:

Stored size: 435 Bytes

Contents

require 'raven/interfaces'

module Raven
  class ExceptionInterface < Interface

    name 'exception'
    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

  register_interface :exception => ExceptionInterface
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
sentry-raven-0.12.3 lib/raven/interfaces/exception.rb
sentry-raven-0.12.2 lib/raven/interfaces/exception.rb
sentry-raven-0.12.1 lib/raven/interfaces/exception.rb
sentry-raven-0.12.0 lib/raven/interfaces/exception.rb
mustwin-sentry-raven-0.11.2 lib/raven/interfaces/exception.rb
sentry-raven-0.11.2 lib/raven/interfaces/exception.rb
sentry-raven-0.11.1 lib/raven/interfaces/exception.rb
sentry-raven-0.10.1 lib/raven/interfaces/exception.rb