Sha256: 340f840591e73d0676746dd18c3c0ae4c30270cf0ff0cd1ece627266ba9c6d1a

Contents?: true

Size: 374 Bytes

Versions: 3

Compression:

Stored size: 374 Bytes

Contents

module Adapter
  class Error < StandardError; end

  class Undefined < Error; end

  class IncompleteAPI < Error
    def initialize(methods)
      super("Missing methods needed to complete API (#{methods.join(', ')})")
    end
  end

  class LockTimeout < Error
    def initialize(key, timeout)
      super("Timeout on lock #{key} exceeded #{timeout} sec")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adapter-0.5.2 lib/adapter/exceptions.rb
adapter-0.5.1 lib/adapter/exceptions.rb
adapter-0.5 lib/adapter/exceptions.rb