Api.ErrorsSourceErrors handling
Print a success message.
val fail_exit :
file:string ->
code:string ->
Kernel.Basic.loc option ->
('a, Format.formatter, unit, 'b) format4 ->
'afail_exit file error_id lc "..." Prints the given error message prefixed with module and location details (when provided) as well as the error ID then exits with the given code.
Print a system error message then exits with code 1.
val register_exception :
(red:(Kernel.Term.term -> Kernel.Term.term) -> exn -> error_msg option) ->
unitval string_of_exception :
red:(Kernel.Term.term -> Kernel.Term.term) ->
Kernel.Basic.loc ->
exn ->
error_code * Kernel.Basic.loc * string