18 lines
406 B
Python
18 lines
406 B
Python
class ProductServiceError(Exception):
|
|
def __init__(self, message: str):
|
|
super().__init__(message)
|
|
|
|
|
|
class ProductorNotFoundError(ProductServiceError):
|
|
pass
|
|
|
|
|
|
class ProductNotFoundError(ProductServiceError):
|
|
pass
|
|
|
|
|
|
class ProductCreateError(ProductServiceError):
|
|
def __init__(self, message: str, field: str | None = None):
|
|
super().__init__(message)
|
|
self.field = field
|