Exception: Datadog::Profiling::Transport::HTTP::API::Spec::NoProfilesEndpointDefinedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ddtrace/profiling/transport/http/api/spec.rb

Overview

Raised when profiles sent but no profiles endpoint is defined

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(spec) ⇒ NoProfilesEndpointDefinedError

Returns a new instance of NoProfilesEndpointDefinedError.



28
29
30
# File 'lib/ddtrace/profiling/transport/http/api/spec.rb', line 28

def initialize(spec)
  @spec = spec
end

Instance Attribute Details

#specObject (readonly)

Returns the value of attribute spec.



26
27
28
# File 'lib/ddtrace/profiling/transport/http/api/spec.rb', line 26

def spec
  @spec
end

Instance Method Details

#messageObject



32
33
34
# File 'lib/ddtrace/profiling/transport/http/api/spec.rb', line 32

def message
  'No profiles endpoint is defined for API specification!'
end