Sha256: 776ed8465bd24293fb12150242747d5ba2c686e32262b76f68496d61ff485b6b

Contents?: true

Size: 1.84 KB

Versions: 13

Compression:

Stored size: 1.84 KB

Contents

# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


require "google/cloud/errors"

module Google
  module Cloud
    module Trace
      ##
      # # AsyncReporterError
      #
      # Used to indicate a problem preventing traces from being buffered
      # asynchronously. This can occur when there are not enough resources
      # allocated for the amount of usage.
      #
      class AsyncReporterError < Google::Cloud::Error
        # @!attribute [r] count
        #   @return [Array<Google::Cloud::Trace::TraceRecord>] traces The trace
        #   objects that were not written to the API due to the error.
        attr_reader :traces

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

      ##
      # # AsyncPatchTracesError
      #
      # Used to indicate a problem when patching traces to the API. This can
      # occur when the API returns an error.
      #
      class AsyncPatchTracesError < Google::Cloud::Error
        # @!attribute [r] count
        #   @return [Array<Google::Cloud::Trace::TraceRecord>] traces The trace
        #   objects that were not written to the API due to the error.
        attr_reader :traces

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

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
google-cloud-trace-0.45.0 lib/google/cloud/trace/errors.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/google-cloud-trace-0.42.2/lib/google/cloud/trace/errors.rb
google-cloud-trace-0.44.1 lib/google/cloud/trace/errors.rb
google-cloud-trace-0.44.0 lib/google/cloud/trace/errors.rb
google-cloud-trace-0.43.0 lib/google/cloud/trace/errors.rb
google-cloud-trace-0.42.2 lib/google/cloud/trace/errors.rb
google-cloud-trace-0.42.1 lib/google/cloud/trace/errors.rb
google-cloud-trace-0.42.0 lib/google/cloud/trace/errors.rb
google-cloud-trace-0.41.4 lib/google/cloud/trace/errors.rb
google-cloud-trace-0.41.3 lib/google/cloud/trace/errors.rb
google-cloud-trace-0.41.2 lib/google/cloud/trace/errors.rb
google-cloud-trace-0.41.1 lib/google/cloud/trace/errors.rb
google-cloud-trace-0.41.0 lib/google/cloud/trace/errors.rb