Sha256: 85836cabf22abbbf68660673dcc250d46f3b73f245eb49a925afbfe411c7edcb

Contents?: true

Size: 511 Bytes

Versions: 3

Compression:

Stored size: 511 Bytes

Contents

module DatabaseSlave

  # Generic Database Slave exception class.
  class DatabaseSlaveError < StandardError
  end

  # Raised when using_slave() method used on a abstract class
  # without a block given.
  # For example: ActiveRecord::Base.using_slave().where() is not allowed.
  class AbstractClassWithoutBlockError < DatabaseSlaveError
  end

  # Raised when slave connection doesn't exists.
  class SlaveConnectionNotExists < DatabaseSlaveError
  end

  class AdapterNotFound < DatabaseSlaveError
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
database_slave-0.1.4 lib/database_slave/errors.rb
database_slave-0.1.3 lib/database_slave/errors.rb
database_slave-0.1.2 lib/database_slave/errors.rb