Class: Datadog::CI::Transport::HTTP::InternalErrorResponse
- Defined in:
- lib/datadog/ci/transport/http.rb
Defined Under Namespace
Classes: DummyNetHTTPResponse
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Attributes inherited from Response
Instance Method Summary collapse
-
#initialize(error) ⇒ InternalErrorResponse
constructor
A new instance of InternalErrorResponse.
- #inspect ⇒ Object
- #internal_error? ⇒ Boolean
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
#error ⇒ Object (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
#inspect ⇒ Object
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
142 143 144 |
# File 'lib/datadog/ci/transport/http.rb', line 142 def internal_error? true end |