Exception: Datadog::Profiling::Recorder::UnknownEventError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ddtrace/profiling/recorder.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_class) ⇒ UnknownEventError

Returns a new instance of UnknownEventError.



75
76
77
# File 'lib/ddtrace/profiling/recorder.rb', line 75

def initialize(event_class)
  @event_class = event_class
end

Instance Attribute Details

#event_classObject (readonly)

Returns the value of attribute event_class.



73
74
75
# File 'lib/ddtrace/profiling/recorder.rb', line 73

def event_class
  @event_class
end

Instance Method Details

#messageObject



79
80
81
# File 'lib/ddtrace/profiling/recorder.rb', line 79

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