Exception: Dolly::ServerError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Dolly::ServerError
- Defined in:
- lib/dolly/exceptions.rb
Instance Method Summary collapse
-
#initialize(msg) ⇒ ServerError
constructor
A new instance of ServerError.
- #to_s ⇒ Object
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_s ⇒ Object
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 |