RosettaCodeData/Task/Exceptions/OCaml/exceptions-3.ocaml
2023-07-01 13:44:08 -04:00

6 lines
149 B
Text

try
string_of_int (foo 2)
with
My_Exception -> "got my exception"
| Another_Exception s -> s
| _ -> "unknown exception"