Class: Datadog::Core::Transport::InternalErrorResponse
- Inherits:
-
Object
- Object
- Datadog::Core::Transport::InternalErrorResponse
- Includes:
- Response
- Defined in:
- lib/datadog/core/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.
- #inspect ⇒ Object
- #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.
50 51 52 |
# File 'lib/datadog/core/transport/response.rb', line 50 def initialize(error) @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
48 49 50 |
# File 'lib/datadog/core/transport/response.rb', line 48 def error @error end |
Instance Method Details
#inspect ⇒ Object
58 59 60 |
# File 'lib/datadog/core/transport/response.rb', line 58 def inspect "#{super}, error_type:#{error.class} error:#{error}" end |
#internal_error? ⇒ Boolean
54 55 56 |
# File 'lib/datadog/core/transport/response.rb', line 54 def internal_error? true end |