Class: NewRelic::Agent::NoticeableError
- Inherits:
-
Object
- Object
- NewRelic::Agent::NoticeableError
- Defined in:
- lib/new_relic/agent/noticeable_error.rb
Overview
This class is used for instrumentations that have exceptions or error classes not derived from Ruby’s usual Exception or StandardError or in situations where we do not have such Exception object to work with.
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(class_name, message) ⇒ NoticeableError
constructor
A new instance of NoticeableError.
Constructor Details
#initialize(class_name, message) ⇒ NoticeableError
Returns a new instance of NoticeableError.
13 14 15 16 |
# File 'lib/new_relic/agent/noticeable_error.rb', line 13 def initialize(class_name, ) @class_name = class_name @message = end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
11 12 13 |
# File 'lib/new_relic/agent/noticeable_error.rb', line 11 def class_name @class_name end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
11 12 13 |
# File 'lib/new_relic/agent/noticeable_error.rb', line 11 def @message end |