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.
348 349 350 |
# File 'lib/datadog/tracing/transport/native.rb', line 348 def initialize(error) @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
346 347 348 |
# File 'lib/datadog/tracing/transport/native.rb', line 346 def error @error end |
Instance Method Details
#client_error? ⇒ Boolean
364 365 366 |
# File 'lib/datadog/tracing/transport/native.rb', line 364 def client_error? false end |
#inspect ⇒ Object
388 389 390 |
# File 'lib/datadog/tracing/transport/native.rb', line 388 def inspect "#<#{self.class} error=#{error.inspect}>" end |
#internal_error? ⇒ Boolean
356 357 358 |
# File 'lib/datadog/tracing/transport/native.rb', line 356 def internal_error? true end |
#not_found? ⇒ Boolean
368 369 370 |
# File 'lib/datadog/tracing/transport/native.rb', line 368 def not_found? false end |
#ok? ⇒ Boolean
352 353 354 |
# File 'lib/datadog/tracing/transport/native.rb', line 352 def ok? false end |
#payload ⇒ Object
376 377 378 |
# File 'lib/datadog/tracing/transport/native.rb', line 376 def payload nil end |
#server_error? ⇒ Boolean
360 361 362 |
# File 'lib/datadog/tracing/transport/native.rb', line 360 def server_error? false end |
#service_rates ⇒ Object
384 385 386 |
# File 'lib/datadog/tracing/transport/native.rb', line 384 def service_rates nil end |
#trace_count ⇒ Object
380 381 382 |
# File 'lib/datadog/tracing/transport/native.rb', line 380 def trace_count 0 end |
#unsupported? ⇒ Boolean
372 373 374 |
# File 'lib/datadog/tracing/transport/native.rb', line 372 def unsupported? false end |