Method: DatadogAPIClient::APIError#message
- Defined in:
- lib/datadog_api_client/api_client.rb
#message ⇒ Object
570 571 572 573 574 575 576 577 578 579 580 581 582 |
# File 'lib/datadog_api_client/api_client.rb', line 570 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 |