Class: Datadog::Tracing::Transport::Native::InternalErrorResponse
- Inherits:
-
Object
- Object
- Datadog::Tracing::Transport::Native::InternalErrorResponse
- Defined in:
- lib/datadog/tracing/transport/native.rb
Overview
Response for internal errors (exceptions raised before reaching the native transport).
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
- #client_error? ⇒ Boolean
-
#initialize(error) ⇒ InternalErrorResponse
constructor
A new instance of InternalErrorResponse.
- #inspect ⇒ Object
- #internal_error? ⇒ Boolean
- #not_found? ⇒ Boolean
- #ok? ⇒ Boolean
- #payload ⇒ Object
- #server_error? ⇒ Boolean
- #service_rates ⇒ Object
- #trace_count ⇒ Object
- #unsupported? ⇒ Boolean
Constructor Details
#initialize(error) ⇒ InternalErrorResponse
Returns a new instance of InternalErrorResponse.
332 333 334 |
# File 'lib/datadog/tracing/transport/native.rb', line 332 def initialize(error) @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
330 331 332 |
# File 'lib/datadog/tracing/transport/native.rb', line 330 def error @error end |
Instance Method Details
#client_error? ⇒ Boolean
348 349 350 |
# File 'lib/datadog/tracing/transport/native.rb', line 348 def client_error? false end |
#inspect ⇒ Object
372 373 374 |
# File 'lib/datadog/tracing/transport/native.rb', line 372 def inspect "#<#{self.class} error=#{error.inspect}>" end |
#internal_error? ⇒ Boolean
340 341 342 |
# File 'lib/datadog/tracing/transport/native.rb', line 340 def internal_error? true end |
#not_found? ⇒ Boolean
352 353 354 |
# File 'lib/datadog/tracing/transport/native.rb', line 352 def not_found? false end |
#ok? ⇒ Boolean
336 337 338 |
# File 'lib/datadog/tracing/transport/native.rb', line 336 def ok? false end |
#payload ⇒ Object
360 361 362 |
# File 'lib/datadog/tracing/transport/native.rb', line 360 def payload nil end |
#server_error? ⇒ Boolean
344 345 346 |
# File 'lib/datadog/tracing/transport/native.rb', line 344 def server_error? false end |
#service_rates ⇒ Object
368 369 370 |
# File 'lib/datadog/tracing/transport/native.rb', line 368 def service_rates nil end |
#trace_count ⇒ Object
364 365 366 |
# File 'lib/datadog/tracing/transport/native.rb', line 364 def trace_count 0 end |
#unsupported? ⇒ Boolean
356 357 358 |
# File 'lib/datadog/tracing/transport/native.rb', line 356 def unsupported? false end |