Skip to content

Commit ac89773

Browse files
committed
chore: improve wording on exception handling
1 parent 47c2733 commit ac89773

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/core/event_handler/api_gateway.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,7 @@ You can use **`not_found`** decorator to override this behaviour, and return a c
524524

525525
### Exception handling
526526

527-
You might want to handle an exception outside your route like custom validation errors or anything that warrants a different response (status code, headers, body).
528-
529-
You can use `exception_handler` decorator with any Python exception.
527+
You can use `exception_handler` decorator with any Python exception. This allows you to handle a common exception outside your route, for example validation errors.
530528

531529
=== "app.py"
532530

0 commit comments

Comments
 (0)