2025-08-30 10:40:02 +03:30
|
|
|
from rest_framework import status
|
2025-11-11 13:45:23 +03:30
|
|
|
from rest_framework.exceptions import APIException
|
2025-08-30 10:40:02 +03:30
|
|
|
|
|
|
|
|
|
|
|
|
|
class UniqueRancherApiException(APIException):
|
|
|
|
|
status_code = status.HTTP_403_FORBIDDEN
|
|
|
|
|
default_detail = "دامدار با این کد ملی از قبل در سیستم وجود دارد" # noqa
|
2025-10-07 12:02:30 +03:30
|
|
|
|
|
|
|
|
|
2025-11-11 13:45:23 +03:30
|
|
|
class DuplicateRancherException(APIException):
|
|
|
|
|
status_code = status.HTTP_403_FORBIDDEN
|
2025-11-11 14:09:06 +03:30
|
|
|
default_detail = "اطلاعات دامدار استعلام شده دارای مشکل میباشد با پشتیبانی تماس بگیرید" # noqa
|
2025-11-11 13:45:23 +03:30
|
|
|
|
|
|
|
|
|
2025-10-07 12:02:30 +03:30
|
|
|
class HerdCapacityException(APIException):
|
|
|
|
|
status_code = status.HTTP_403_FORBIDDEN
|
|
|
|
|
default_detail = "مقدار حجم سبک و سنگین وارد شده از ظرفیت گله بیشتر میباشد" # noqa
|