Exception: ThreeScale::Backend::ApplicationKeyInvalid
- Defined in:
- lib/3scale/backend/errors.rb
Instance Method Summary collapse
-
#initialize(key) ⇒ ApplicationKeyInvalid
constructor
A new instance of ApplicationKeyInvalid.
Methods inherited from Error
#code, code, #http_code, #to_xml, underscore
Constructor Details
#initialize(key) ⇒ ApplicationKeyInvalid
Returns a new instance of ApplicationKeyInvalid.
55 56 57 58 59 60 61 |
# File 'lib/3scale/backend/errors.rb', line 55 def initialize(key) if key.blank? super 'application key is missing'.freeze else super %(application key "#{key}" is invalid) end end |