Exception: PgRls::Errors::TenantNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- PgRls::Errors::TenantNotFound
- 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
-
#initialize(msg = nil) ⇒ TenantNotFound
constructor
A new instance of TenantNotFound.
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 |