Class: StackifyRubyAPM::Error::Exception Private
- Inherits:
-
Object
- Object
- StackifyRubyAPM::Error::Exception
- 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
- #attributes ⇒ Object private
- #code ⇒ Object private
- #handled ⇒ Object private
- #message ⇒ Object private
- #module ⇒ Object private
- #stacktrace ⇒ Object private
- #type ⇒ Object private
Instance Method Summary collapse
-
#initialize(exception, **attrs) ⇒ Exception
constructor
private
A new instance of Exception.
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.}" @type = exception.class.to_s @module = format_module exception attrs.each do |key, val| send(:"#{key}=", val) end end |
Instance Attribute Details
#attributes ⇒ Object
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 |
#code ⇒ Object
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 |
#handled ⇒ Object
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 |
#message ⇒ Object
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 end |
#module ⇒ Object
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 |
#stacktrace ⇒ Object
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 |
#type ⇒ Object
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 |