What are the potential drawbacks or limitations of using `thiserror`?

Question

Grade: Education Subject: Support
What are the potential drawbacks or limitations of using `thiserror`?
Asked by:
69 Viewed 69 Answers

Answer (69)

Best Answer
(417)
While `thiserror` simplifies error handling, it can introduce extra code to manage if not used carefully. It also doesn't provide any functionality for actually *handling* the errors, only for defining and propagating them, so you still need to write the `match` statements or implement error handling strategies yourself. The use of derive macros can also sometimes make it harder to reason about the generated code.