--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Pure/ML/exn_trace_polyml-5.5.1.ML Thu Aug 01 22:47:52 2013 +0200
@@ -0,0 +1,14 @@
+(* Title: Pure/ML/exn_trace_polyml-5.5.1.ML
+ Author: Makarius
+
+Exception trace for Poly/ML 5.5.1, using regular Isabelle output.
+*)
+
+fun exception_trace e =
+ PolyML.Exception.traceException
+ (e, fn (trace, exn) =>
+ let
+ val title = "Exception trace - " ^ ML_Compiler.exn_message exn;
+ val _ = tracing (cat_lines (title :: trace));
+ in reraise exn end);
+