Refactor Error Handling #24
Labels
enhancement
New feature or request
from_willyovale
An issue described in original project, but never implemented
good first issue
Good for newcomers
Description
Fireorm can throw different types of errors, including Firestore errors, validation errors, and other generic errors. Currently, error declarations are scattered throughout the codebase, leading to duplicated and inconsistent error handling. To improve maintainability and readability, error handling should be centralized.
Steps to Reproduce
Expected Behavior
Centralized error handling with consistent error messages and types, reducing code duplication and improving maintainability.
Actual Behavior
Error declarations are scattered throughout the codebase, leading to duplicated and inconsistent error handling.
Acceptance Criteria
new Error()
instances in the codebase by creating centralized error definitions insrc/Errors
.Additional Context
Proposed API Changes
Centralize Error Definitions:
src/Errors
.Refactor Error Handling in Codebase:
new Error()
with the appropriate custom error classes.Remove Duplicated Error Declarations:
Example Implementation
Original Issue
The text was updated successfully, but these errors were encountered: