|
|
|
|
|
by aliceryhl
2228 days ago
|
|
Anyhow isn't really about error handling, but about error reporting. With an ordinary enum error, I can match and easily handle the error if I want to handle some errors in special ways. If I want to handle an anyhow error, I have to do string matching on the message, or try to downcast it, which is cumbersome. What anyhow makes easier is to collect many types of errors together and reporting the errors to the user. |
|