suvradeepp's picture
Deploy reno scheduling engine (FastAPI + Streamlit)
9c50399 verified
Raw
History Blame Contribute Delete
436 Bytes
from app.errors import DomainError
class NoTemplateError(DomainError):
def __init__(self, category_id: int, procurement_type: str):
self.category_id = category_id
self.procurement_type = procurement_type
super().__init__(
f"No active activity_templates for category={category_id}, "
f"procurement_type={procurement_type}"
)
self.name = "NoTemplateError"