-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend error cases #3
Comments
For now, it is not possible. |
I thought to eliminate the number of results we have in the app. So I want to have a functional way of the signup fields validation that later leads to the network call. Something like:
|
Maybe we can open our
Do you think it would help? |
Interesting, I never thought about opening the I was thinking about a |
I would like this feature too 🙏 How about including a CustomError that inherits from your error and is a new type of sealed. the field can be a type T that is our custom error hierarchy. sometimes i use Error.ThrowableError: Represents with custom exception and then casting it. other times Error.NetworkError: Represents and using the codes with enum know to do other things. but I think the best way is to be able to offer something that encapsulates our own hierarchy and starts from yours. |
The error cases are limited to three predefined types.
I really would like to have also validation errors with my type.
Any suggestions on how it is possible to achieve this now or thoughts on how easy it would be to incorporate it to this library?
The text was updated successfully, but these errors were encountered: