Exception: Rest::InternalClient::RequestFailed

Inherits:
ExceptionWithResponse show all
Defined in:
lib/rest/wrappers/internal_client/internal/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 Rest::InternalClient::Exception

Instance Method Details

#messageObject



130
131
132
# File 'lib/rest/wrappers/internal_client/internal/exceptions.rb', line 130

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

#to_sObject



134
135
136
# File 'lib/rest/wrappers/internal_client/internal/exceptions.rb', line 134

def to_s
  message
end