package spotlib
Module Spotlib.Exn
module Pervasives : sig ... endinclude module type of struct include Pervasives end
Printf style errors
val failwithf : ('a, unit, string, 'b) format4 -> 'aval invalid_argf : ('a, unit, string, 'b) format4 -> 'aval raisef : (string -> exn) -> ('a, unit, string, 'b) format4 -> 'aException handling
It raises an exception Finally (org, final) when finally cannot recover the error.
It raises an exception Finally (org, final) when finally cannot recover the error.
val catch : ('a -> 'b) -> 'a -> ('b, [> `Exn of exn ]) resultval catch_ : (unit -> 'b) -> ('b, [> `Exn of exn ]) resulttee f v ~handler. If f v raises an exception e, handler e is executed, then e is reraised.
val with_return : ('a return -> 'a) -> 'aval format : Format.formatter -> exn -> unitval print_backtrace : out_channel -> unit