Exception: CouchRest::RequestFailed

Inherits:
Exception
  • Object
show all
Defined in:
lib/couchrest/exceptions.rb

Overview

The request failed with an error code not managed by the code

Instance Attribute Summary

Attributes inherited from Exception

#response

Instance Method Summary collapse

Methods inherited from Exception

default_message, #http_body, #http_code, #http_headers, #initialize, #inspect

Constructor Details

This class inherits a constructor from CouchRest::Exception

Instance Method Details

#messageObject



83
84
85
# File 'lib/couchrest/exceptions.rb', line 83

def message
  "HTTP status code #{http_code}"
end

#to_sObject



87
88
89
# File 'lib/couchrest/exceptions.rb', line 87

def to_s
  message
end