Class: NewRelic::Agent::NoticeableError

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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, message)
  @class_name = class_name
  @message = message
end

Instance Attribute Details

#class_nameObject (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

#messageObject (readonly)

Returns the value of attribute message.



11
12
13
# File 'lib/new_relic/agent/noticeable_error.rb', line 11

def message
  @message
end