Exception: ThreeScale::Backend::ServiceTokenInvalid

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

Overview

The name for this class stays as ServiceTokenInvalid even though the more correct name would be ServiceTokenOrIdInvalid to avoid breaking users.

Instance Method Summary collapse

Methods inherited from Error

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

Constructor Details

#initialize(token, service_id) ⇒ ServiceTokenInvalid

Returns a new instance of ServiceTokenInvalid.



234
235
236
# File 'lib/3scale/backend/errors.rb', line 234

def initialize(token, service_id)
  super %(service token "#{token}" or service id "#{service_id}" is invalid)
end