Exception: Fluence::Gateway::UnknownTenantError

Inherits:
Error
  • Object
show all
Defined in:
lib/fluence/gateway/errors.rb

Overview

Raised when a call references a tenant: (via the kwarg or Client#with_tenant) that is not declared in Configuration::Settings#tenants and is not one of the gem's built-in tenants.

Examples:

Handle a typo on the tenant name

begin
  Fluence::Gateway::Client.get('/api/v1/me', tenant: :mosiac) # typo
rescue Fluence::Gateway::UnknownTenantError => e
  # declare the tenant in `config.tenants` or fix the name
end