i want to define a Base model that inherits from pydantic BaseModel like bellow
class BaseDomain(BaseModel):
def __init__(self, **kwargs):
self.__exceptions = []
def add_error(self, exception: GeneralException):
self.__exceptions.append(exception)
but i get this error when i use Product model that inherits from BaseDomain
ValueError: "Product" object has no field "_BaseDomain__exceptions"