diff --git a/backend/modules/service_auto/services/comanda_service.py b/backend/modules/service_auto/services/comanda_service.py index c7c08b9..505a0b2 100644 --- a/backend/modules/service_auto/services/comanda_service.py +++ b/backend/modules/service_auto/services/comanda_service.py @@ -33,6 +33,10 @@ def _handle_oracle_error(e: Exception) -> NoReturn: clean = re.sub(r"^ORA-\d+:\s*", "", raw_message).strip() raise HTTPException(status_code=422, detail=clean) + if code == 1438: + # ORA-01438: value larger than specified precision — bad input ID (e.g. id_masiniclient out of range) + raise HTTPException(status_code=422, detail="Valoare invalidă pentru câmp (ID prea mare)") + if code in (12541, 12170, 12154, 12560): raise HTTPException( status_code=503,