Module Odoc_model.Error

type t
val make : ?⁠suggestion:string -> ('aStdlib.Format.formatter, unit, Location_.span -> t) Stdlib.format4 -> 'a
val filename_only : ?⁠suggestion:string -> ('aStdlib.Format.formatter, unit, string -> t) Stdlib.format4 -> 'a
val to_string : t -> string
val raise_exception : t -> _
val to_exception : ('at) Result.result -> 'a
val catch : (unit -> 'a) -> ('at) Result.result
type 'a with_warnings = {
value : 'a;
warnings : t list;
}
type warning_accumulator
val accumulate_warnings : (warning_accumulator -> 'a) -> 'a with_warnings
val warning : warning_accumulator -> t -> unit
val shed_warnings : 'a with_warnings -> 'a
val set_warn_error : bool -> unit

When set to true, shed_warnings will raise Failure if it had to print warnings.