Class: Datadog::Core::Telemetry::Http::InternalErrorResponse

Inherits:
Object
  • Object
show all
Includes:
Response
Defined in:
lib/datadog/core/telemetry/http/response.rb

Overview

A generic error response for internal errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Response

#client_error?, #code, #not_found?, #ok?, #payload, #server_error?, #unsupported?

Constructor Details

#initialize(error) ⇒ InternalErrorResponse

Returns a new instance of InternalErrorResponse.



53
54
55
# File 'lib/datadog/core/telemetry/http/response.rb', line 53

def initialize(error)
  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



51
52
53
# File 'lib/datadog/core/telemetry/http/response.rb', line 51

def error
  @error
end

Instance Method Details

#inspectObject



61
62
63
# File 'lib/datadog/core/telemetry/http/response.rb', line 61

def inspect
  "#{super}, error_type:#{error.class} error:#{error}"
end

#internal_error?Boolean

Returns:

  • (Boolean)


57
58
59
# File 'lib/datadog/core/telemetry/http/response.rb', line 57

def internal_error?
  true
end