Exception: Datadog::Core::Remote::Transport::HTTP::Config::Response::AgentErrorResponse

Inherits:
ConfigError
  • Object
show all
Defined in:
lib/datadog/core/remote/transport/http/config.rb

Overview

When the agent returned an error response to our request

Instance Method Summary collapse

Constructor Details

#initialize(code, body) ⇒ AgentErrorResponse

Returns a new instance of AgentErrorResponse.



145
146
147
148
149
# File 'lib/datadog/core/remote/transport/http/config.rb', line 145

def initialize(code, body)
  truncated_body = Core::Utils::Truncation.truncate_in_middle(body, 700, 300)
  message = "Agent returned an error response: #{code}: #{truncated_body}"
  super(message)
end