Class: Datadog::CI::Transport::HTTP::InternalErrorResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/datadog/ci/transport/http.rb

Defined Under Namespace

Classes: DummyNetHTTPResponse

Instance Attribute Summary collapse

Attributes inherited from Response

#http_response

Instance Method Summary collapse

Methods inherited from Response

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

Constructor Details

#initialize(error) ⇒ InternalErrorResponse

Returns a new instance of InternalErrorResponse.



136
137
138
139
140
# File 'lib/datadog/ci/transport/http.rb', line 136

def initialize(error)
  super(DummyNetHTTPResponse.new)

  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



134
135
136
# File 'lib/datadog/ci/transport/http.rb', line 134

def error
  @error
end

Instance Method Details

#inspectObject



146
147
148
# File 'lib/datadog/ci/transport/http.rb', line 146

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

#internal_error?Boolean

Returns:

  • (Boolean)


142
143
144
# File 'lib/datadog/ci/transport/http.rb', line 142

def internal_error?
  true
end