author | agriesma |
Thu, 17 Apr 2003 18:01:03 +0200 | |
branch | griesmayer |
changeset 338 | 90390fecbe74 |
parent 308 | 93f297edc4a5 |
child 365 | 022b8b845fbe |
child 1123 | d11537b98c02 |
permissions | -rw-r--r-- |
agriesma@308 | 1 |
(* use"print_exn_G.sml"; |
agriesma@308 | 2 |
W.N.11.99 |
agriesma@308 | 3 |
*) |
agriesma@308 | 4 |
|
agriesma@308 | 5 |
|
agriesma@308 | 6 |
fun print_exn_unit e = |
agriesma@308 | 7 |
case e of |
agriesma@308 | 8 |
PTREE str => |
agriesma@308 | 9 |
(writeln ("Exception PTREE " ^ str)) |
agriesma@308 | 10 |
| PROOFS str => |
agriesma@308 | 11 |
(writeln ("Exception PROOFS " ^ str)) |
agriesma@308 | 12 |
| DIALS str => |
agriesma@308 | 13 |
(writeln ("Exception DIALS " ^ str)) |
agriesma@308 | 14 |
(* | TERM (msg,ts) => |
agriesma@308 | 15 |
(writeln ("Exception TERM raised:\n" ^ msg); |
agriesma@308 | 16 |
seq (writeln o Sign.string_of_term sign) ts) *) |
agriesma@308 | 17 |
| e => raise e; |
agriesma@308 | 18 |
|
agriesma@308 | 19 |
(*raises the exception in order to have a polymorphic type!*) |
agriesma@308 | 20 |
fun print_exn_G e = (print_exn_unit e; raise e); |