Exception: CloudFS::RestAdapter::Errors::ServerError
Overview
Exception for errors returned by remote service
Instance Attribute Summary collapse
-
#code ⇒ Fixnum
readonly
Http status.
-
#request ⇒ Hash
readonly
{ :uri => String, :method => String, :params => String }.
-
#response ⇒ Hash
readonly
Response { :content => String, :content_type => String, :code => Fixnum }.
Instance Method Summary collapse
-
#initialize(message, code, response = {}, request = {}) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(message, code, response = {}, request = {}) ⇒ ServerError
Returns a new instance of ServerError.
206 207 208 209 210 211 |
# File 'lib/cloudfs/client/error.rb', line 206
def initialize(message, code, response={}, request={})
super(message)
@code = code
@response = response
@request = request
end
|
Instance Attribute Details
#code ⇒ Fixnum (readonly)
Returns http status.
194 195 196 |
# File 'lib/cloudfs/client/error.rb', line 194
def code
@code
end
|
#request ⇒ Hash (readonly)
{ :uri => String, :method => String, :params => String }
200 201 202 |
# File 'lib/cloudfs/client/error.rb', line 200
def request
@request
end
|
#response ⇒ Hash (readonly)
Returns response { :content => String, :content_type => String, :code => Fixnum }.
197 198 199 |
# File 'lib/cloudfs/client/error.rb', line 197
def response
@response
end
|