Exception: Cloudflare::HTTPError
- Inherits:
-
StandardError
- Object
- StandardError
- Cloudflare::HTTPError
- Defined in:
- lib/cloudflare_workers/http.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(message, url: nil, method: nil) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(message, url: nil, method: nil) ⇒ HTTPError
Returns a new instance of HTTPError.
23 24 25 26 27 |
# File 'lib/cloudflare_workers/http.rb', line 23 def initialize(, url: nil, method: nil) @url = url @method = method super("[Cloudflare::HTTP] #{method || 'GET'} #{url}: #{}") end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
22 23 24 |
# File 'lib/cloudflare_workers/http.rb', line 22 def method @method end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
22 23 24 |
# File 'lib/cloudflare_workers/http.rb', line 22 def url @url end |