# Does Kotlin have multi-catch?

**URL:** <https://discuss.kotlinlang.org/t/does-kotlin-have-multi-catch/486>\
**Category:** Uncategorized\
**Created:** [September 9, 2014, 9:18am UTC](https://discuss.kotlinlang.org/t/does-kotlin-have-multi-catch/486 "2014-09-09T09:18:41Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![medium](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/medium/32/10404_2.png) [@medium](https://discuss.kotlinlang.org/u/medium)\
**Post date:** [May 17, 2018, 6:38am UTC](https://discuss.kotlinlang.org/t/does-kotlin-have-multi-catch/486/20 "2018-05-17T06:38:57Z")

</div>

To mimic multi-catch the else branch should rethrow the exception.

```
try {
    ...
} catch (e: Exception) {
    when(e) {
         is SomeException, is OtherException -> {...}
         else -> throw e
    }
}

```

---

_[View the full topic](https://discuss.kotlinlang.org/t/does-kotlin-have-multi-catch/486)._
