Class: StackifyRubyAPM::Error::Exception Private

Inherits:
Object
  • Object
show all
Defined in:
lib/stackify_apm/error/exception.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary collapse

MOD_SPLIT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

'::'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exception, **attrs) ⇒ Exception

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Exception.



9
10
11
12
13
14
15
16
17
18
# File 'lib/stackify_apm/error/exception.rb', line 9

def initialize(exception, **attrs)
  @message =
    "#{exception.class}: #{exception.message}"
  @type = exception.class.to_s
  @module = format_module exception

  attrs.each do |key, val|
    send(:"#{key}=", val)
  end
end

Instance Attribute Details

#attributesObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



20
21
22
# File 'lib/stackify_apm/error/exception.rb', line 20

def attributes
  @attributes
end

#codeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



20
21
22
# File 'lib/stackify_apm/error/exception.rb', line 20

def code
  @code
end

#handledObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



20
21
22
# File 'lib/stackify_apm/error/exception.rb', line 20

def handled
  @handled
end

#messageObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



20
21
22
# File 'lib/stackify_apm/error/exception.rb', line 20

def message
  @message
end

#moduleObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



20
21
22
# File 'lib/stackify_apm/error/exception.rb', line 20

def module
  @module
end

#stacktraceObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



20
21
22
# File 'lib/stackify_apm/error/exception.rb', line 20

def stacktrace
  @stacktrace
end

#typeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



20
21
22
# File 'lib/stackify_apm/error/exception.rb', line 20

def type
  @type
end