Skip to content

Commit

Permalink
Merge 727c2db into a999ef6
Browse files Browse the repository at this point in the history
  • Loading branch information
mseri committed Feb 19, 2018
2 parents a999ef6 + 727c2db commit c4017aa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion memory/memory_interface.ml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ type errors =
"[Invalid_memory_value (value)] is reported if a memory value passed is not ";
"valid, e.g. negative."
]]
| Internal_error of (string)
[@doc[
"[Internal_error (value)] is reported if an unexpected error is triggered ";
"by the library."
]]
| Unknown_error
[@doc [
"The default variant for forward compatibility."
Expand All @@ -73,7 +78,9 @@ exception MemoryError of errors
let err = Error.{
def = errors;
raiser = (function | e -> raise (MemoryError e));
matcher = function | MemoryError e -> Some e | _ -> None
matcher = function
| MemoryError e -> Some e
| e -> Some (Internal_error (Printexc.to_string e))
}

type debug_info = string
Expand Down

0 comments on commit c4017aa

Please sign in to comment.