Sha256: e5719bdcf902f43957272303c3df99357a77a0b7878b39e41410eb61796ade26

Contents?: true

Size: 594 Bytes

Versions: 10

Compression:

Stored size: 594 Bytes

Contents

module Dolly
  class ResourceNotFound < RuntimeError
    def to_s
      'The document was not found.'
    end
  end
  class ServerError < RuntimeError
    def to_s
      'There has been an error on the couchdb server. Please review your couch logs.'
    end
  end
  class MissingDesignError < RuntimeError
    def to_s
      'Design document is missing. Add it into couchdb.yml as design:name.'
    end
  end
  class InvalidConfigFileError < RuntimeError

    def initialize filename
      @filename = filename
    end

    def to_s
      "Invalid config file at #{filename}"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dolly-0.7.5 lib/exceptions/dolly.rb
dolly-0.7.3 lib/exceptions/dolly.rb
dolly-0.7.2 lib/exceptions/dolly.rb
dolly-0.7.1 lib/exceptions/dolly.rb
dolly-0.7.0 lib/exceptions/dolly.rb
dolly-0.6.2 lib/exceptions/dolly.rb
dolly-0.6.1 lib/exceptions/dolly.rb
dolly-0.6.0 lib/exceptions/dolly.rb
dolly-0.5.7 lib/exceptions/dolly.rb
dolly-0.5.6 lib/exceptions/dolly.rb