Exception: Request::CloudflareBlockedError
- Inherits:
-
StandardError
- Object
- StandardError
- Request::CloudflareBlockedError
- Defined in:
- lib/Request.rb
Overview
Raised when Medium’s Cloudflare layer blocks the request (typically the “Just a moment…” challenge page). Carries enough context for the CLI to print actionable cookie-setup guidance.
Instance Attribute Summary collapse
-
#http_code ⇒ Object
readonly
Returns the value of attribute http_code.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(http_code, url) ⇒ CloudflareBlockedError
constructor
A new instance of CloudflareBlockedError.
Constructor Details
#initialize(http_code, url) ⇒ CloudflareBlockedError
Returns a new instance of CloudflareBlockedError.
11 12 13 14 15 |
# File 'lib/Request.rb', line 11 def initialize(http_code, url) @http_code = http_code @url = url super(buildMessage) end |
Instance Attribute Details
#http_code ⇒ Object (readonly)
Returns the value of attribute http_code.
9 10 11 |
# File 'lib/Request.rb', line 9 def http_code @http_code end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
9 10 11 |
# File 'lib/Request.rb', line 9 def url @url end |