Exception: ThreeScale::Backend::ProviderKeyInvalidOrServiceMissing

Inherits:
Error
  • Object
show all
Defined in:
lib/3scale/backend/errors.rb

Overview

This is raised in these 2 situations:

1) The request does not contain a valid provider key nor a service ID.
2) The request contains a valid provider key, but does not contain a
   service ID, and the provider does not have a default service
   associated.

Instance Method Summary collapse

Methods inherited from Error

#code, code, #http_code, #to_xml, underscore

Constructor Details

#initialize(provider_key) ⇒ ProviderKeyInvalidOrServiceMissing

Returns a new instance of ProviderKeyInvalidOrServiceMissing.



245
246
247
# File 'lib/3scale/backend/errors.rb', line 245

def initialize(provider_key)
  super %(provider key "#{provider_key}" invalid and/or service ID missing)
end