Exception: ScreenshotFreeAPI::PaymentRequiredError
- Inherits:
-
ScreenshotFreeAPIError
- Object
- StandardError
- ScreenshotFreeAPIError
- ScreenshotFreeAPI::PaymentRequiredError
- Defined in:
- lib/screenshotfreeapi/errors.rb
Overview
402 — Subscription cancelled or payment overdue.
Instance Attribute Summary
Attributes inherited from ScreenshotFreeAPIError
#details, #error_code, #status_code
Instance Method Summary collapse
-
#initialize(msg = "Payment required — subscription cancelled or payment overdue") ⇒ PaymentRequiredError
constructor
A new instance of PaymentRequiredError.
Constructor Details
#initialize(msg = "Payment required — subscription cancelled or payment overdue") ⇒ PaymentRequiredError
Returns a new instance of PaymentRequiredError.
46 47 48 |
# File 'lib/screenshotfreeapi/errors.rb', line 46 def initialize(msg = "Payment required — subscription cancelled or payment overdue") super(402, "PaymentRequired", msg) end |