# app/modules/tenancy/exceptions.py """ Tenancy module exceptions. Exceptions for platform, company, vendor, and admin user management. """ from app.exceptions import WizamartException class TenancyException(WizamartException): """Base exception for tenancy module.""" pass class VendorNotFoundException(TenancyException): """Vendor not found or inactive.""" def __init__(self, vendor_code: str): super().__init__(f"Vendor '{vendor_code}' not found or inactive") self.vendor_code = vendor_code class CompanyNotFoundException(TenancyException): """Company not found.""" def __init__(self, company_id: int): super().__init__(f"Company {company_id} not found") self.company_id = company_id class PlatformNotFoundException(TenancyException): """Platform not found.""" def __init__(self, platform_id: int): super().__init__(f"Platform {platform_id} not found") self.platform_id = platform_id