add tests forn forms, products, productors
All checks were successful
Deploy Amap / deploy (push) Successful in 3m45s
All checks were successful
Deploy Amap / deploy (push) Successful in 3m45s
This commit is contained in:
11
backend/src/productors/exceptions.py
Normal file
11
backend/src/productors/exceptions.py
Normal file
@@ -0,0 +1,11 @@
|
||||
class ProductorServiceError(Exception):
|
||||
def __init__(self, message: str):
|
||||
super().__init__(message)
|
||||
|
||||
class ProductorNotFoundError(ProductorServiceError):
|
||||
pass
|
||||
|
||||
class ProductorCreateError(ProductorServiceError):
|
||||
def __init__(self, message: str, field: str | None = None):
|
||||
super().__init__(message)
|
||||
self.field = field
|
||||
Reference in New Issue
Block a user