Method: Falcon::ApiError#message
- Defined in:
- lib/crimson-falcon/api_error.rb
#message ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/crimson-falcon/api_error.rb', line 61 def if @message.nil? msg = "Error message: the server returns an error" else msg = @message end msg += "\nHTTP status code: #{code}" if code msg += "\nResponse headers: #{response_headers}" if response_headers msg += "\nResponse body: #{response_body}" if response_body msg end |