Content deleted Content added
No edit summary |
No edit summary Tags: Mobile edit Mobile app edit iOS app edit App section source |
||
(One intermediate revision by one other user not shown) | |||
Line 207:
try {
// do something (might throw an exception)
} catch (const std::runtime_error e) {
// handle a runtime_error e
} catch (const std::exception& e) {
//
} catch (...) {
// catches all
}
}
Line 591 ⟶ 592:
=== Kotlin ===
{{Further|Kotlin (programming language)}}
<syntaxhighlight lang="kotlin">
try {
|