Error Handling : Custom Exception message does not work
Closed this issue · 4 comments
Jocelyn-AGORO commented
eadwinCode commented
class BadRequestException(APIException):
status_code = status.HTTP_400_BAD_REQUEST
default_detail = "Bad Request: "
message
should be changed to default_detail
Jocelyn-AGORO commented
Ok, I try it it works now. Thank You.
You need to change it on the documentation.
https://eadwincode.github.io/django-ninja-extra/tutorial/custom_exception/
eadwinCode commented
Oh I see... Thanks @Jocelyn-AGORO
I will do that shortly
eadwinCode commented
@Jocelyn-AGORO This is now resolved