From 0b7d6f5f90d17beeaa15931a365801f8b98593f1 Mon Sep 17 00:00:00 2001 From: Adam Bannister <1306402+AtomsForPeace@users.noreply.github.com> Date: Wed, 10 Sep 2025 14:21:51 +0200 Subject: [PATCH] Update error handling in some_service function --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8fbc04e..c18396e 100644 --- a/README.md +++ b/README.md @@ -1613,7 +1613,7 @@ from rest_framework import exceptions def some_service(): - raise ValidationError("Error message here.") + raise exceptions.ValidationError("Some message") ``` The response payload is going to look like this: