12
12
* en Automatique. All rights reserved. This file is distributed
13
13
* under the terms of the GNU Library General Public License *)
14
14
15
+ (* The logic in this files describes a `degraded` mode for exceptions, before
16
+ the remanent_parameters were loaded.
17
+ these exceptions did not stop execution, so `uncaught` and `caught` may not
18
+ be good naming here. `caught` here basically add a trace to uncaught info
19
+ TODO: revamp/rename this?
20
+ *)
21
+
15
22
type uncaught_exception
16
23
17
24
exception Uncaught_exception of uncaught_exception
@@ -31,7 +38,10 @@ val build_caught_exception :
31
38
string option -> string option -> exn -> string list -> caught_exception
32
39
33
40
val add_uncaught_error :
34
- ?to_ui : bool -> uncaught_exception -> exceptions_caught_and_uncaught -> exceptions_caught_and_uncaught
41
+ ?to_ui : bool ->
42
+ uncaught_exception ->
43
+ exceptions_caught_and_uncaught ->
44
+ exceptions_caught_and_uncaught
35
45
36
46
val stringlist_of_exception : exn -> string list -> string list
37
47
val stringlist_of_uncaught : uncaught_exception -> string list -> string list
@@ -41,10 +51,18 @@ val pp_exception : Format.formatter -> exn -> unit
41
51
val pp_uncaught : Format .formatter -> uncaught_exception -> unit
42
52
val pp_caught : Format .formatter -> caught_exception -> unit
43
53
val empty_exceptions_caught_and_uncaught : exceptions_caught_and_uncaught
44
- val is_empty_exceptions_caught_and_uncaught : exceptions_caught_and_uncaught -> bool
45
- val get_caught_exception_list : exceptions_caught_and_uncaught -> caught_exception list
46
- val get_caught_exception_list_to_ui : exceptions_caught_and_uncaught -> caught_exception list
47
- val get_uncaught_exception_list : exceptions_caught_and_uncaught -> uncaught_exception list
54
+
55
+ val is_empty_exceptions_caught_and_uncaught :
56
+ exceptions_caught_and_uncaught -> bool
57
+
58
+ val get_caught_exception_list :
59
+ exceptions_caught_and_uncaught -> caught_exception list
60
+
61
+ val get_caught_exception_list_to_ui :
62
+ exceptions_caught_and_uncaught -> caught_exception list
63
+
64
+ val get_uncaught_exception_list :
65
+ exceptions_caught_and_uncaught -> uncaught_exception list
48
66
49
67
val get_uncaught_exception_list_to_ui :
50
68
exceptions_caught_and_uncaught -> uncaught_exception list
0 commit comments