Skip to content

Commit

Permalink
docs: add note about application behavior when handling filter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Jan 13, 2025
1 parent 6682914 commit c6659a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/decisions/0007-filter-design-practices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ Error Handling

Consider the example above, the filter specifies an exception that is raised when the certificate creation process is stopped, providing a clear understanding of the filter behavior when the exception is raised. This exception should be handled properly in the application to avoid runtime errors.

.. note:: The application should catch the exception and handle it properly by returning an error message to the user through API responses, UI messages, or logs depending on the application context and where the filter is being used.

Type Safety
~~~~~~~~~~~

Expand Down

0 comments on commit c6659a6

Please sign in to comment.