handle Sorts.CLASS_ERROR instead of arbitrary exceptions;
authorwenzelm
Sat, 24 Oct 2009 17:47:53 +0200
changeset 33087 e50f948fd6bd
parent 33086 6e5b994070c1
child 33088 757d7787b10c
handle Sorts.CLASS_ERROR instead of arbitrary exceptions;
src/HOL/Tools/quickcheck_generators.ML
--- a/src/HOL/Tools/quickcheck_generators.ML	Fri Oct 23 20:48:14 2009 +0200
+++ b/src/HOL/Tools/quickcheck_generators.ML	Sat Oct 24 17:47:53 2009 +0200
@@ -317,7 +317,7 @@
       |> fold (fn (v, sort) => Vartab.update ((v, 0), sort)) raw_vs
       |> fold meet_random insts;
   in SOME (fn (v, _) => (v, (the o Vartab.lookup vtab) (v, 0)))
-  end handle CLASS_ERROR => NONE;
+  end handle Sorts.CLASS_ERROR _ => NONE;
 
 fun ensure_random_datatype config raw_tycos thy =
   let