Module: PublishingPlatformApi::ExceptionHandling
- Included in:
- JsonClient
- Defined in:
- lib/publishing_platform_api/exceptions.rb
Instance Method Summary collapse
Instance Method Details
#build_specific_http_error(error, url, details = nil) ⇒ Object
73 74 75 76 77 |
# File 'lib/publishing_platform_api/exceptions.rb', line 73 def build_specific_http_error(error, url, details = nil) = "URL: #{url}\nResponse body:\n#{error.http_body}" code = error.http_code error_class_for_code(code).new(code, , details, error.http_body) end |