src/Tools/isac/print_exn_G.sml
author Walther Neuper <neuper@ist.tugraz.at>
Thu, 12 Aug 2010 11:02:32 +0200
branchisac-update-Isa09-2
changeset 37906 e2b23ba9df13
child 38015 67ba02dffacc
permissions -rw-r--r--
moved isac + test to final dire-structure
neuper@37906
     1
(* W.N.11.99
neuper@37906
     2
neuper@37906
     3
use"print_exn_G.sml";
neuper@37906
     4
*)
neuper@37906
     5
neuper@37906
     6
neuper@37906
     7
fun print_exn_unit e = 
neuper@37906
     8
    case e of
neuper@37906
     9
	PTREE str =>
neuper@37906
    10
	(writeln ("Exception PTREE raised:\n" ^ str))
neuper@37906
    11
(*      | SCRIPT str =>
neuper@37906
    12
	(writeln ("Exception SCRIPT raised:\n" ^ str))
neuper@37906
    13
      | TERM (msg,ts) =>
neuper@37906
    14
	(writeln ("Exception TERM raised:\n" ^ msg);
neuper@37906
    15
	 seq (writeln o Sign.string_of_term sign) ts)*)
neuper@37906
    16
      | e => raise e;
neuper@37906
    17
    
neuper@37906
    18
(*raises the exception in order to have a polymorphic type!*)
neuper@37906
    19
fun print_exn_G e = (print_exn_unit e;  raise e);