summaryrefslogtreecommitdiff
path: root/ocaml-binary-annot/camlp4/Camlp4/ErrorHandler.mli
blob: 674811459b90b844ad499634b4634ef2c276506e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(****************************************************************************)
(*                                                                          *)
(*                              Objective Caml                              *)
(*                                                                          *)
(*                            INRIA Rocquencourt                            *)
(*                                                                          *)
(*  Copyright  2006   Institut National de Recherche  en  Informatique et   *)
(*  en Automatique.  All rights reserved.  This file is distributed under   *)
(*  the terms of the GNU Library General Public License, with the special   *)
(*  exception on linking described in LICENSE at the top of the Objective   *)
(*  Caml source tree.                                                       *)
(*                                                                          *)
(****************************************************************************)

(* Authors:
 * - Nicolas Pouillard: initial version
 *)
value print : Format.formatter -> exn -> unit;

value try_print : Format.formatter -> exn -> unit;

value to_string : exn -> string;

value try_to_string : exn -> string;

value register : (Format.formatter -> exn -> unit) -> unit;

module Register (Error : Sig.Error) : sig end;

module ObjTools : sig
  value print : Format.formatter -> Obj.t -> unit;
  value print_desc : Format.formatter -> Obj.t -> unit;
  (*Imported from the extlib*)
  value to_string : Obj.t -> string;
  value desc : Obj.t -> string;
end;