Sha256: 877355fabdce884816d85c97c6a4dbe7f809f7b09d4c7cf3541bf2f67bedbdad

Contents?: true

Size: 705 Bytes

Versions: 4

Compression:

Stored size: 705 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
  class InvalidProperty < RuntimeError
    def to_s
      "Trying to set an undefined property."
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dolly-0.9.0 lib/exceptions/dolly.rb
dolly-0.8.1 lib/exceptions/dolly.rb
dolly-0.8.0 lib/exceptions/dolly.rb
dolly-0.7.6 lib/exceptions/dolly.rb