Proper ID not found model error handling #34

Open
opened 2024-09-07 09:50:09 +00:00 by matous-volf · 1 comment
matous-volf commented 2024-09-07 09:50:09 +00:00 (Migrated from github.com)

Currently, editing models and similar server functions do not return a specific error when the model is not found by the provided ID. The solution is probably to create a new enum like TaskEditError with variants NotFound and TaskError(TaskError).

Currently, editing models and similar server functions do not return a specific error when the model is not found by the provided ID. The solution is probably to create a new enum like `TaskEditError` with variants `NotFound` and `TaskError(TaskError)`.
matous-volf commented 2024-09-07 09:56:52 +00:00 (Migrated from github.com)

Or, since it is common, add NotFound to the base Error.

Or, since it is common, add `NotFound` to the base `Error`.
matous-volf added this to the Backlog project 2024-12-29 15:29:29 +00:00
matous-volf added the
refactor
label 2024-12-29 15:43:11 +00:00
Sign in to join this conversation.
No Milestone
No project Backlog
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: matous-volf/todo-baggins#34
No description provided.