Class: Datadog::CI::Transport::HTTP::ErrorResponse
Instance Attribute Summary collapse
#duration_ms, #http_response, #request_compressed, #request_size
Instance Method Summary
collapse
#client_error?, #gzipped_body?, #gzipped_content?, #not_found?, #ok?, #server_error?, #telemetry_error_type, #trace_count, #unsupported?
Constructor Details
Returns a new instance of ErrorResponse.
161
162
163
|
# File 'lib/datadog/ci/transport/http.rb', line 161
def initialize(error)
@error = error
end
|
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
165
166
167
|
# File 'lib/datadog/ci/transport/http.rb', line 165
def error
@error
end
|
Instance Method Details
#code ⇒ Object
175
176
177
|
# File 'lib/datadog/ci/transport/http.rb', line 175
def code
nil
end
|
171
172
173
|
# File 'lib/datadog/ci/transport/http.rb', line 171
def (name)
nil
end
|
#inspect ⇒ Object
183
184
185
|
# File 'lib/datadog/ci/transport/http.rb', line 183
def inspect
"ErrorResponse error:#{error}"
end
|
#payload ⇒ Object
167
168
169
|
# File 'lib/datadog/ci/transport/http.rb', line 167
def payload
""
end
|
#response_size ⇒ Object
179
180
181
|
# File 'lib/datadog/ci/transport/http.rb', line 179
def response_size
0
end
|