Module InferBase__Die
exception
InferExternalError of string
exception
InferInternalError of string
exception
InferUserError of string
exception
InferExit of int
This can be used to avoid scattering exit invocations all over the codebase
type error
=
|
ExternalError
|
InternalError
|
UserError
kind of error for
die
, with similar semantics asLogging.{external,internal,user}_error
val exit : int -> 'a
val exit_code_of_exception : InferStdlib.IStd.Exn.t -> int
val set_log_uncaught_exception_callback : (exn -> exitcode:int -> unit) -> unit
val log_uncaught_exception : exn -> exitcode:int -> unit
val die : error -> ('a, Stdlib.Format.formatter, unit, _) InferStdlib.IStd.format4 -> 'a
Raise the corresponding exception.
val raise_error : ?backtrace:InferStdlib.IStd.Caml.Printexc.raw_backtrace -> error -> msg:string -> 'a
val term_styles_of_style : style -> InferStdlib.IStd.ANSITerminal.style list