Exception: RestClient::RequestFailed

Inherits:
ExceptionWithResponse show all
Defined in:
lib/restclient/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

#http_body, #http_code, #initialize, #inspect

Constructor Details

This class inherits a constructor from RestClient::Exception

Instance Method Details

#messageObject


129
130
131
# File 'lib/restclient/exceptions.rb', line 129

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

#to_sObject


133
134
135
# File 'lib/restclient/exceptions.rb', line 133

def to_s
  message
end