Exception: Datadog::Core::Remote::Transport::HTTP::Config::Response::AgentErrorResponse
- Inherits:
-
ConfigError
- Object
- StandardError
- ConfigError
- Datadog::Core::Remote::Transport::HTTP::Config::Response::AgentErrorResponse
- 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
-
#initialize(code, body) ⇒ AgentErrorResponse
constructor
A new instance of AgentErrorResponse.
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) = "Agent returned an error response: #{code}: #{truncated_body}" super() end |