Module Exceptions


module Exceptions: Extlib.ExtPrintexc.Printexc
Facilities for printing exceptions.
Author(s): Xavier Leroy (Base module), David Teller

val to_string : exn -> string
Printexc.to_string e returns a string representation of the exception e.
val pass : ('a -> 'b) -> 'a -> 'b
Printexc.pass fn x applies fn to x and returns the result. If the evaluation of fn x raises any exception, the name of the exception is printed on standard error output, and the exception is raised again. The typical use is to catch and report exceptions that escape a function application.
val print : 'a Extlib.InnerIO.output -> exn -> unit
Print an exception.