Sha256: 7c4ba1a5b9b0873d7b5a150b1898a9c089743528f18179dee1eee0d355ddb1d1

Contents?: true

Size: 658 Bytes

Versions: 12

Compression:

Stored size: 658 Bytes

Contents

# this class encapsulates an error that was noticed by RPM in a managed app.
# Unfortunately it was put in the agent in the global namespace early on and
# for backward compatibility it needs to remain here.
class NewRelic::NoticedError
  attr_accessor :path, :timestamp, :params, :exception_class, :message
  
  def initialize(path, data, exception)
    self.path = path
    self.params = data
    
    self.exception_class = exception.class.name
    
    if exception.respond_to?('original_exception')
      self.message = exception.original_exception.message
    else
      self.message = exception.message
    end

    self.timestamp = Time.now
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
newrelic_rpm-2.8.0 lib/new_relic/noticed_error.rb
newrelic_rpm-2.8.1 lib/new_relic/noticed_error.rb
newrelic_rpm-2.8.10 lib/new_relic/noticed_error.rb
newrelic_rpm-2.8.11 lib/new_relic/noticed_error.rb
newrelic_rpm-2.8.2 lib/new_relic/noticed_error.rb
newrelic_rpm-2.8.3 lib/new_relic/noticed_error.rb
newrelic_rpm-2.8.4 lib/new_relic/noticed_error.rb
newrelic_rpm-2.8.5 lib/new_relic/noticed_error.rb
newrelic_rpm-2.8.6 lib/new_relic/noticed_error.rb
newrelic_rpm-2.8.7 lib/new_relic/noticed_error.rb
newrelic_rpm-2.8.8 lib/new_relic/noticed_error.rb
newrelic_rpm-2.8.9 lib/new_relic/noticed_error.rb