Use OCaml 4.02s unified value/exception matching