Exception: Datadog::Profiling::OldRecorder::UnknownEventError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/datadog/profiling/old_recorder.rb

Overview

Error when event of an unknown type is used with the OldRecorder

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_class) ⇒ UnknownEventError



86
87
88
# File 'lib/datadog/profiling/old_recorder.rb', line 86

def initialize(event_class)
  @event_class = event_class
end

Instance Attribute Details

#event_classObject (readonly)

Returns the value of attribute event_class.



84
85
86
# File 'lib/datadog/profiling/old_recorder.rb', line 84

def event_class
  @event_class
end

Instance Method Details

#messageObject



90
91
92
# File 'lib/datadog/profiling/old_recorder.rb', line 90

def message
  @message ||= "Unknown event class '#{event_class}' for profiling recorder."
end