RosettaCodeData/Task/Exceptions/Standard-ML/exceptions-1.ml

3 lines
105 B
OCaml

exception MyException;
exception MyDataException of int; (* can be any first-class type, not just int *)