class CloudflareClient::ResponseError
Attributes
method[R]
The Faraday::Response object that caused the exception to be raised.
response[R]
The Faraday::Response object that caused the exception to be raised.
uri[R]
The Faraday::Response object that caused the exception to be raised.
url[R]
The Faraday::Response object that caused the exception to be raised.
Public Class Methods
new(message = nil, response = nil, method = nil, uri = nil, url = nil)
click to toggle source
Calls superclass method
# File lib/cloudflare_client/middleware/response/raise_error.rb, line 6 def initialize(message = nil, response = nil, method = nil, uri = nil, url = nil) super("#{message}, #{method&.upcase} #{url} #{response&.body}") @response = response @method = method @uri = uri @url = url end