Class: Datadog::Transport::InternalErrorResponse
- Inherits:
-
Object
- Object
- Datadog::Transport::InternalErrorResponse
- Includes:
- Response
- Defined in:
- lib/ddtrace/transport/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.
- #internal_error? ⇒ Boolean
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
#error ⇒ Object (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
44 45 46 |
# File 'lib/ddtrace/transport/response.rb', line 44 def internal_error? true end |