Sha256: d87f2c83cef852b87d8f7c55223ddf3e023b5aed9160a092973bcdc1a06e4509

Contents?: true

Size: 669 Bytes

Versions: 3

Compression:

Stored size: 669 Bytes

Contents

module Dolly
  class ResourceNotFound < RuntimeError
    def to_s
      'The document was not found.'
    end
  end

  class ServerError < RuntimeError
    def initialize msg
      @msg = msg
    end

    def to_s
      "There has been an error on the couchdb server: #{@msg.inspect}"
    end
  end

  class InvalidMangoOperatorError < RuntimeError
    def initialize msg
      @msg = msg
    end

    def to_s
      "Invalid Mango operator: #{@msg.inspect}"
    end
  end

  class IndexNotFoundError < RuntimeError; end
  class InvalidConfigFileError < RuntimeError; end
  class InvalidProperty < RuntimeError; end
  class DocumentInvalidError < RuntimeError; end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dolly-3.1.1 lib/dolly/exceptions.rb
dolly-3.1.0 lib/dolly/exceptions.rb
dolly-3.0.1 lib/dolly/exceptions.rb