Describing specific Errors in Fin #1485
-
|
Hello, first day, kinda getting used to this. From what I understand of But since So the question is what is best practice in LanguageExt-friendly way? Is specifying error types in return signature not recommended? I was planning to describe error types when possible. Or am I just opt to use Also, what would be main reasoning behind fixing error type in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
There are |
Beta Was this translation helpful? Give feedback.
-
|
@legokangpalla I have spent the past two days writing up everything I can think of regarding 'how to handle errors in a functional-way'. It's not quite finished yet and it's very much a 'brain dump', so might not always be coherent! :D I will finish it over the next week, but in the meantime, it should give you some insights into the full error-handling story. I hope that helps. |
Beta Was this translation helpful? Give feedback.
There are
ExceptionalandExpectedtypes deriving fromErrorthat you can catch usingFallibletrait: #1342Some old but still relevant description of Error type:#1074
Example:#1400 (comment)