Class: Sentry::SingleExceptionInterface

Inherits:
Interface show all
Defined in:
lib/sentry/interfaces/single_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Interface

inherited, registered

Instance Attribute Details

#moduleObject

Returns the value of attribute module.



5
6
7
# File 'lib/sentry/interfaces/single_exception.rb', line 5

def module
  @module
end

#stacktraceObject

Returns the value of attribute stacktrace.



7
8
9
# File 'lib/sentry/interfaces/single_exception.rb', line 7

def stacktrace
  @stacktrace
end

#thread_idObject

Returns the value of attribute thread_id.



6
7
8
# File 'lib/sentry/interfaces/single_exception.rb', line 6

def thread_id
  @thread_id
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/sentry/interfaces/single_exception.rb', line 3

def type
  @type
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/sentry/interfaces/single_exception.rb', line 4

def value
  @value
end

Instance Method Details

#to_hashObject



9
10
11
12
13
# File 'lib/sentry/interfaces/single_exception.rb', line 9

def to_hash
  data = super
  data[:stacktrace] = data[:stacktrace].to_hash if data[:stacktrace]
  data
end