Sha256: eb9c0fb452b5d9580989d0b2b7ee81480ee723b457a7a5f187c76bb5decb3ff6

Contents?: true

Size: 1.72 KB

Versions: 6

Compression:

Stored size: 1.72 KB

Contents

# Copyright 2023 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 Firestore
      ##
      # Indicates that the an error was reported while scheduling
      # BulkWriter operations.
      #
      class BulkWriterSchedulerError < Google::Cloud::Error
        def initialize message
          super "BulkWriterSchedulerError : #{message}"
        end
      end

      ##
      # Indicates that the an error was reported while committing a
      # batch of operations.
      #
      class BulkCommitBatchError < Google::Cloud::Error
        def initialize message
          super "BulkCommitBatchError : #{message}"
        end
      end

      ##
      # Indicates that the an error was reported while parsing response for
      # BulkWriterOperation.
      #
      class BulkWriterOperationError < Google::Cloud::Error
        def initialize message
          super "BulkWriterOperationError : #{message}"
        end
      end

      ##
      # Indicates that the an error was reported in BulkWriter.
      #
      class BulkWriterError < Google::Cloud::Error
        def initialize message
          super "BulkWriterError : #{message}"
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
google-cloud-firestore-2.16.0 lib/google/cloud/firestore/errors.rb
google-cloud-firestore-2.15.1 lib/google/cloud/firestore/errors.rb
google-cloud-firestore-2.15.0 lib/google/cloud/firestore/errors.rb
google-cloud-firestore-2.14.0 lib/google/cloud/firestore/errors.rb
google-cloud-firestore-2.13.1 lib/google/cloud/firestore/errors.rb
google-cloud-firestore-2.13.0 lib/google/cloud/firestore/errors.rb