Replace all ~1,086 occurrences of Wizamart/wizamart/WIZAMART/WizaMart with Orion/orion/ORION across 184 files. This includes database identifiers, email addresses, domain references, R2 bucket names, DNS prefixes, encryption salt, Celery app name, config defaults, Docker configs, CI configs, documentation, seed data, and templates. Renames homepage-wizamart.html template to homepage-orion.html. Fixes duplicate file_pattern key in api.yaml architecture rule. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
61 lines
2.1 KiB
Python
61 lines
2.1 KiB
Python
# app/exceptions/__init__.py
|
|
"""
|
|
Base exception classes for the application.
|
|
|
|
This module provides only framework-level exceptions. Domain-specific exceptions
|
|
have been moved to their respective modules:
|
|
|
|
- tenancy: StoreNotFoundException, MerchantNotFoundException, etc.
|
|
- orders: OrderNotFoundException, InvoiceNotFoundException, etc.
|
|
- inventory: InventoryNotFoundException, InsufficientInventoryException, etc.
|
|
- billing: TierNotFoundException, SubscriptionNotFoundException, etc.
|
|
- marketplace: ImportJobNotFoundException, MarketplaceProductNotFoundException, etc.
|
|
- messaging: ConversationNotFoundException, MessageNotFoundException, etc.
|
|
- customers: CustomerNotFoundException, AddressNotFoundException, etc.
|
|
- cart: CartItemNotFoundException, EmptyCartException, etc.
|
|
- catalog: ProductNotFoundException, ProductValidationException, etc.
|
|
- cms: ContentPageNotFoundException, MediaNotFoundException, etc.
|
|
- monitoring: ScanNotFoundException, ViolationNotFoundException, etc.
|
|
|
|
Import pattern:
|
|
# Base exceptions (framework-level)
|
|
from app.exceptions import ValidationException, ResourceNotFoundException
|
|
|
|
# Domain exceptions (module-level)
|
|
from app.modules.orders.exceptions import OrderNotFoundException
|
|
from app.modules.tenancy.exceptions import StoreNotFoundException
|
|
"""
|
|
|
|
# Base exceptions - these are the only exports from root
|
|
from .base import (
|
|
AuthenticationException,
|
|
AuthorizationException,
|
|
BusinessLogicException,
|
|
ConflictException,
|
|
ExternalServiceException,
|
|
OrionException,
|
|
RateLimitException,
|
|
ResourceNotFoundException,
|
|
ServiceUnavailableException,
|
|
ValidationException,
|
|
)
|
|
|
|
__all__ = [
|
|
# Base exception class
|
|
"OrionException",
|
|
# Validation and business logic
|
|
"ValidationException",
|
|
"BusinessLogicException",
|
|
# Authentication and authorization
|
|
"AuthenticationException",
|
|
"AuthorizationException",
|
|
# Resource operations
|
|
"ResourceNotFoundException",
|
|
"ConflictException",
|
|
# External services
|
|
"ExternalServiceException",
|
|
"ServiceUnavailableException",
|
|
# Rate limiting
|
|
"RateLimitException",
|
|
]
|