Is it possible to catch all possible exceptions in ML? for example, if I don’t know what exception might be
The operator handleallows you to create pattern matching exceptions, so you can use something like handle _to match something, for example.
handle
handle _
hd [] handle _ => 0