Method: DocSpring::ApiError#message
- Defined in:
- lib/docspring/api_error.rb
permalink #message ⇒ Object
[View source]
44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/docspring/api_error.rb', line 44 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 |