Exception: PgRls::Errors::TenantNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pg_rls/errors/tenant_not_found.rb

Overview

Raise Tenant Not found and ensure that the tenant is resetted

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ TenantNotFound

Returns a new instance of TenantNotFound.



7
8
9
10
11
# File 'lib/pg_rls/errors/tenant_not_found.rb', line 7

def initialize(msg = nil)
  PgRls::Tenant.reset_rls!
  msg ||= "Tenant Doesn't exist"
  super(msg)
end