Exception: Leash::UpgradeRequiredError

Inherits:
Error
  • Object
show all
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

Methods inherited from Error

#connect_url, #message, #to_s

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(message = "This feature requires a higher plan.", **opts)
  opts[:code] ||= "UPGRADE_REQUIRED"
  super(message, **opts)
end