core/error/failure library
Classes
- BusinessFailure
- A standard Business Logic Failure (e.g., invalid data, constraint violation).
- CacheFailure
- A standard Cache Failure (e.g., local storage read/write error).
- Failure
- Base class for all failures in the application. Use this class to standardize error handling in the Domain Layer.
- ServerFailure
- A standard Server Failure (e.g., 500 error, timeout).