Sha256: 3800c301b2e2dcb8a70263d7271d47094eef5acb0bca433dddf249b9e48d7e1f

Contents?: true

Size: 592 Bytes

Versions: 30

Compression:

Stored size: 592 Bytes

Contents

# frozen_string_literal: true

module Switchman
  module Errors
    class ManuallyCreatedShadowRecordError < RuntimeError
      DEFAULT_MSG = "It looks like you're trying to manually create a shadow record. " \
                    "Please use Switchman::ActiveRecord::Base#save_shadow_record instead."

      def initialize(msg = DEFAULT_MSG)
        super
      end
    end

    class NonExistentShardError < RuntimeError; end

    class ParallelShardExecError < RuntimeError; end

    class ShadowRecordError < RuntimeError; end

    class UnshardedTableError < RuntimeError; end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
switchman-3.6.7 lib/switchman/errors.rb
switchman-3.6.6 lib/switchman/errors.rb
switchman-3.6.5 lib/switchman/errors.rb
switchman-3.6.3 lib/switchman/errors.rb
switchman-3.6.2 lib/switchman/errors.rb
switchman-3.6.1 lib/switchman/errors.rb
switchman-3.6.0 lib/switchman/errors.rb
switchman-3.5.22 lib/switchman/errors.rb
switchman-3.5.21 lib/switchman/errors.rb
switchman-3.5.20 lib/switchman/errors.rb
switchman-3.5.19 lib/switchman/errors.rb
switchman-3.5.18 lib/switchman/errors.rb
switchman-3.5.17 lib/switchman/errors.rb
switchman-3.5.16 lib/switchman/errors.rb
switchman-3.5.15 lib/switchman/errors.rb
switchman-3.5.14 lib/switchman/errors.rb
switchman-3.5.13 lib/switchman/errors.rb
switchman-3.5.12 lib/switchman/errors.rb
switchman-3.5.11 lib/switchman/errors.rb
switchman-3.5.10 lib/switchman/errors.rb