Exception: Leash::UpgradeRequiredError
- Defined in:
- lib/leash/errors.rb
Overview
402 from the platform — feature requires a higher plan.
Instance Attribute Summary
Attributes inherited from Error
#action, #cause, #code, #see_also, #status
Instance Method Summary collapse
-
#initialize(message = "This feature requires a higher plan.", **opts) ⇒ UpgradeRequiredError
constructor
A new instance of UpgradeRequiredError.
Methods inherited from Error
Constructor Details
#initialize(message = "This feature requires a higher plan.", **opts) ⇒ UpgradeRequiredError
Returns a new instance of UpgradeRequiredError.
63 64 65 66 |
# File 'lib/leash/errors.rb', line 63 def initialize( = "This feature requires a higher plan.", **opts) opts[:code] ||= "UPGRADE_REQUIRED" super(, **opts) end |