# Exception vs Result

**URL:** <https://discuss.ocaml.org/t/exception-vs-result/6931>\
**Category:** Learning\
**Tags:** exceptions\
**Created:** [December 7, 2020, 7:38pm UTC](https://discuss.ocaml.org/t/exception-vs-result/6931 "2020-12-07T19:38:10Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![keleshev](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/keleshev/32/3779_2.png) [@keleshev](https://discuss.ocaml.org/u/keleshev)\
**Post date:** [December 8, 2020, 1:17pm UTC](https://discuss.ocaml.org/t/exception-vs-result/6931/18 "2020-12-08T13:17:50Z")

</div>

A bit late to the party, but here’s an overview of error handling methods that I did a while ago:

[Composable Error Handling in OCaml (keleshev.com)](https://keleshev.com/composable-error-handling-in-ocaml)

It compares the following approaches:

- Exceptions
- Result type with strings for errors
- Result type with custom variants for errors
- Result type with polymorphic variants for errors

---

_[View the full topic](https://discuss.ocaml.org/t/exception-vs-result/6931)._
