Class: Datadog::Transport::InternalErrorResponse

Inherits:
Object
  • Object
show all
Includes:
Response
Defined in:
lib/ddtrace/transport/response.rb

Overview

A generic error response for internal errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Response

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

Constructor Details

#initialize(error) ⇒ InternalErrorResponse

Returns a new instance of InternalErrorResponse.



40
41
42
# File 'lib/ddtrace/transport/response.rb', line 40

def initialize(error)
  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



38
39
40
# File 'lib/ddtrace/transport/response.rb', line 38

def error
  @error
end

Instance Method Details

#internal_error?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/ddtrace/transport/response.rb', line 44

def internal_error?
  true
end