Exception: Datadog::Profiling::Pprof::Template::NoProfilingEventConversionError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/ddtrace/profiling/pprof/template.rb

Overview

Error when an unknown event type is given to be converted

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ NoProfilingEventConversionError

Returns a new instance of NoProfilingEventConversionError.



95
96
97
# File 'lib/ddtrace/profiling/pprof/template.rb', line 95

def initialize(type)
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



93
94
95
# File 'lib/ddtrace/profiling/pprof/template.rb', line 93

def type
  @type
end

Instance Method Details

#messageObject



99
100
101
# File 'lib/ddtrace/profiling/pprof/template.rb', line 99

def message
  "Profiling event type '#{type}' cannot be converted to pprof."
end