Exception: Dolly::ServerError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/dolly/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ ServerError

Returns a new instance of ServerError.



9
10
11
# File 'lib/dolly/exceptions.rb', line 9

def initialize msg
  @msg = msg
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/dolly/exceptions.rb', line 13

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