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

#message, #original_exception, #response

Instance Method Summary collapse

Methods inherited from Exception

#http_body, #http_code, #http_headers, #initialize

Constructor Details

This class inherits a constructor from RestClient::Exception

Instance Method Details

#default_messageObject



157
158
159
# File 'lib/restclient/exceptions.rb', line 157

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

#to_sObject



161
162
163
# File 'lib/restclient/exceptions.rb', line 161

def to_s
  message
end