Skip to content

Commit

Permalink
fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Lendemor committed Jul 23, 2024
1 parent a910b84 commit ee17705
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/utility_methods/exception_handlers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

_Added in v0.5.7_

Exceptions handlers are function that can be assigned to your app to handle exceptions that occur during the application runtime.
Exceptions handlers are functions that can be assigned to your app to handle exceptions that occur during the application runtime.
They are useful for customizing the response when an error occurs, logging errors, and performing cleanup tasks.

## Types

Reflex support two type of exception handler `frontend_exception_handler` and `backend_exception_handler`.
Reflex support two type of exception handlers `frontend_exception_handler` and `backend_exception_handler`.

They are both used to handle exceptions that occur in the `frontend` and `backend` respectively.
They are used to handle exceptions that occur in the `frontend` and `backend` respectively.

The `frontend` errors are coming from the JavaScript side of the application, while `backend` errors are coming from the the event handlers on the Python side.

## Register an Exception Handler

Expand Down

0 comments on commit ee17705

Please sign in to comment.