File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ Always extend BaseExceptionCode — don’t subclass ExceptionCode directly!
253253from api_exception import BaseExceptionCode
254254
255255class CustomExceptionCode (BaseExceptionCode ):
256- USER_NOT_FOUND = (" USR -404" , " User not found." , " User does not exist." )
256+ USER_NOT_FOUND = (" -404" , " User not found." , " User does not exist." )
257257 INVALID_API_KEY = (" API-401" , " Invalid API key." , " Key missing or invalid." )
258258```
259259
@@ -319,8 +319,6 @@ logger.setLevel("DEBUG") # Set logging level
319319
320320---
321321
322-
323-
324322## Examples
325323
326324### All in One Example Application
@@ -341,8 +339,6 @@ This example serves as a **one-stop reference** to see how `api_exception` can b
341339[ ** Click to see the example** ] ( https://github.com/akutayural/APIException/blob/main/examples/production_level.py )
342340
343341
344-
345-
346342---
347343## ✅ Testing Example
348344
@@ -409,6 +405,7 @@ This can be used as a foundation. Can be extended to include more detailed tests
409405Benchmark scripts and raw Locust reports are available in the [ benchmark] ( https://github.com/akutayural/APIException/tree/main/benchmark ) directory.
410406
411407
408+ ---
412409
413410## 📜 Changelog
414411
You can’t perform that action at this time.
0 commit comments