Multitenant implementation with custom Domain, theme per vendor
This commit is contained in:
@@ -6,6 +6,7 @@ This module provides frontend-friendly exceptions with consistent error codes,
|
||||
messages, and HTTP status mappings.
|
||||
"""
|
||||
|
||||
# Base exceptions
|
||||
from .base import (
|
||||
LetzShopException,
|
||||
ValidationException,
|
||||
@@ -19,6 +20,7 @@ from .base import (
|
||||
ServiceUnavailableException,
|
||||
)
|
||||
|
||||
# Authentication exceptions
|
||||
from .auth import (
|
||||
InvalidCredentialsException,
|
||||
TokenExpiredException,
|
||||
@@ -29,6 +31,34 @@ from .auth import (
|
||||
UserAlreadyExistsException
|
||||
)
|
||||
|
||||
# Admin exceptions
|
||||
from .admin import (
|
||||
UserNotFoundException,
|
||||
UserStatusChangeException,
|
||||
VendorVerificationException,
|
||||
AdminOperationException,
|
||||
CannotModifyAdminException,
|
||||
CannotModifySelfException,
|
||||
InvalidAdminActionException,
|
||||
BulkOperationException,
|
||||
)
|
||||
|
||||
# Marketplace import jon exceptions
|
||||
from .marketplace_import_job import (
|
||||
MarketplaceImportException,
|
||||
ImportJobNotFoundException,
|
||||
ImportJobNotOwnedException,
|
||||
InvalidImportDataException,
|
||||
ImportJobCannotBeCancelledException,
|
||||
ImportJobCannotBeDeletedException,
|
||||
MarketplaceConnectionException,
|
||||
MarketplaceDataParsingException,
|
||||
ImportRateLimitException,
|
||||
InvalidMarketplaceException,
|
||||
ImportJobAlreadyProcessingException,
|
||||
)
|
||||
|
||||
# Marketplace product exceptions
|
||||
from .marketplace_product import (
|
||||
MarketplaceProductNotFoundException,
|
||||
MarketplaceProductAlreadyExistsException,
|
||||
@@ -38,6 +68,7 @@ from .marketplace_product import (
|
||||
MarketplaceProductCSVImportException,
|
||||
)
|
||||
|
||||
# Inventory exceptions
|
||||
from .inventory import (
|
||||
InventoryNotFoundException,
|
||||
InsufficientInventoryException,
|
||||
@@ -48,6 +79,7 @@ from .inventory import (
|
||||
LocationNotFoundException
|
||||
)
|
||||
|
||||
# Vendor exceptions
|
||||
from .vendor import (
|
||||
VendorNotFoundException,
|
||||
VendorAlreadyExistsException,
|
||||
@@ -59,6 +91,22 @@ from .vendor import (
|
||||
VendorValidationException,
|
||||
)
|
||||
|
||||
# Vendor domain exceptions
|
||||
from .vendor_domain import (
|
||||
VendorDomainNotFoundException,
|
||||
VendorDomainAlreadyExistsException,
|
||||
InvalidDomainFormatException,
|
||||
ReservedDomainException,
|
||||
DomainNotVerifiedException,
|
||||
DomainVerificationFailedException,
|
||||
DomainAlreadyVerifiedException,
|
||||
MultiplePrimaryDomainsException,
|
||||
DNSVerificationException,
|
||||
MaxDomainsReachedException,
|
||||
UnauthorizedDomainAccessException,
|
||||
)
|
||||
|
||||
# Customer exceptions
|
||||
from .customer import (
|
||||
CustomerNotFoundException,
|
||||
CustomerAlreadyExistsException,
|
||||
@@ -69,6 +117,7 @@ from .customer import (
|
||||
CustomerAuthorizationException,
|
||||
)
|
||||
|
||||
# Team exceptions
|
||||
from .team import (
|
||||
TeamMemberNotFoundException,
|
||||
TeamMemberAlreadyExistsException,
|
||||
@@ -86,6 +135,7 @@ from .team import (
|
||||
InvalidInvitationDataException,
|
||||
)
|
||||
|
||||
# Product exceptions
|
||||
from .product import (
|
||||
ProductNotFoundException,
|
||||
ProductAlreadyExistsException,
|
||||
@@ -97,6 +147,7 @@ from .product import (
|
||||
CannotDeleteProductWithOrdersException,
|
||||
)
|
||||
|
||||
# Order exceptions
|
||||
from .order import (
|
||||
OrderNotFoundException,
|
||||
OrderAlreadyExistsException,
|
||||
@@ -105,31 +156,6 @@ from .order import (
|
||||
OrderCannotBeCancelledException,
|
||||
)
|
||||
|
||||
from .marketplace_import_job import (
|
||||
MarketplaceImportException,
|
||||
ImportJobNotFoundException,
|
||||
ImportJobNotOwnedException,
|
||||
InvalidImportDataException,
|
||||
ImportJobCannotBeCancelledException,
|
||||
ImportJobCannotBeDeletedException,
|
||||
MarketplaceConnectionException,
|
||||
MarketplaceDataParsingException,
|
||||
ImportRateLimitException,
|
||||
InvalidMarketplaceException,
|
||||
ImportJobAlreadyProcessingException,
|
||||
)
|
||||
|
||||
from .admin import (
|
||||
UserNotFoundException,
|
||||
UserStatusChangeException,
|
||||
VendorVerificationException,
|
||||
AdminOperationException,
|
||||
CannotModifyAdminException,
|
||||
CannotModifySelfException,
|
||||
InvalidAdminActionException,
|
||||
BulkOperationException,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
# Base exceptions
|
||||
"LetzShopException",
|
||||
@@ -196,6 +222,19 @@ __all__ = [
|
||||
"MaxVendorsReachedException",
|
||||
"VendorValidationException",
|
||||
|
||||
# Vendor Domain
|
||||
"VendorDomainNotFoundException",
|
||||
"VendorDomainAlreadyExistsException",
|
||||
"InvalidDomainFormatException",
|
||||
"ReservedDomainException",
|
||||
"DomainNotVerifiedException",
|
||||
"DomainVerificationFailedException",
|
||||
"DomainAlreadyVerifiedException",
|
||||
"MultiplePrimaryDomainsException",
|
||||
"DNSVerificationException",
|
||||
"MaxDomainsReachedException",
|
||||
"UnauthorizedDomainAccessException",
|
||||
|
||||
# Product exceptions
|
||||
"ProductNotFoundException",
|
||||
"ProductAlreadyExistsException",
|
||||
|
||||
Reference in New Issue
Block a user