6 lines
149 B
OCaml
6 lines
149 B
OCaml
try
|
|
string_of_int (foo 2)
|
|
with
|
|
My_Exception -> "got my exception"
|
|
| Another_Exception s -> s
|
|
| _ -> "unknown exception"
|