shop product refactoring
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# app/exceptions/base.py
|
||||
"""
|
||||
Base exception classes for the LetzShop application.
|
||||
Base exception classes for the LetzVendor application.
|
||||
|
||||
This module provides classes and functions for:
|
||||
- Base exception class with consistent error formatting
|
||||
@@ -12,7 +12,7 @@ from typing import Any, Dict, Optional
|
||||
|
||||
|
||||
class LetzShopException(Exception):
|
||||
"""Base exception class for all LetzShop custom exceptions."""
|
||||
"""Base exception class for all LetzVendor custom exceptions."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -206,6 +206,6 @@ class ServiceUnavailableException(LetzShopException):
|
||||
status_code=503,
|
||||
)
|
||||
|
||||
# Note: Domain-specific exceptions like ShopNotFoundException, UserNotFoundException, etc.
|
||||
# are defined in their respective domain modules (shop.py, admin.py, etc.)
|
||||
# Note: Domain-specific exceptions like VendorNotFoundException, UserNotFoundException, etc.
|
||||
# are defined in their respective domain modules (vendor.py, admin.py, etc.)
|
||||
# to keep domain-specific logic separate from base exceptions.
|
||||
|
||||
Reference in New Issue
Block a user