Class: Google::Cloud::Trace::AsyncPatchTracesError

Inherits:
Error
  • Object
show all
Defined in:
lib/google/cloud/trace/errors.rb

Overview

AsyncPatchTracesError

Used to indicate a problem when patching traces to the API. This can occur when the API returns an error.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, traces = nil) ⇒ AsyncPatchTracesError

Returns a new instance of AsyncPatchTracesError.



52
53
54
55
# File 'lib/google/cloud/trace/errors.rb', line 52

def initialize message, traces = nil
  super message
  @traces = traces if traces
end

Instance Attribute Details

#countArray<Google::Cloud::Trace::TraceRecord> (readonly)

objects that were not written to the API due to the error.

Returns:



50
# File 'lib/google/cloud/trace/errors.rb', line 50

attr_reader :traces

#tracesObject (readonly)

Returns the value of attribute traces.



50
51
52
# File 'lib/google/cloud/trace/errors.rb', line 50

def traces
  @traces
end