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

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/datadog/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.



94
95
96
# File 'lib/datadog/profiling/pprof/template.rb', line 94

def initialize(type)
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



92
93
94
# File 'lib/datadog/profiling/pprof/template.rb', line 92

def type
  @type
end

Instance Method Details

#messageObject



98
99
100
# File 'lib/datadog/profiling/pprof/template.rb', line 98

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