Class: Datadog::Core::Telemetry::Http::InternalErrorResponse
- Inherits:
-
Object
- Object
- Datadog::Core::Telemetry::Http::InternalErrorResponse
- Includes:
- Response
- Defined in:
- lib/datadog/core/telemetry/http/response.rb
Overview
A generic error response for internal errors
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error) ⇒ InternalErrorResponse
constructor
A new instance of InternalErrorResponse.
- #inspect ⇒ Object
- #internal_error? ⇒ Boolean
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.
55 56 57 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 55 def initialize(error) @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
53 54 55 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 53 def error @error end |
Instance Method Details
#inspect ⇒ Object
63 64 65 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 63 def inspect "#{super}, error_type:#{error.class} error:#{error}" end |
#internal_error? ⇒ Boolean
59 60 61 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 59 def internal_error? true end |