Module Odoc_model.Error

type t
val enable_missing_root_warning : bool ref
val make : ?suggestion:string -> ('a, Format.formatter, unit, Odoc_parser__Loc.span -> t) format4 -> 'a
val filename_only : ?suggestion:string -> ('a, Format.formatter, unit, string -> t) format4 -> 'a
val to_string : t -> string
val raise_exception : t -> 'a
val catch : (unit -> 'a) -> ('a, t) Result.result
type 'a with_warnings
val raise_warning : ?non_fatal:bool -> t -> unit
val raise_warnings : 'a with_warnings -> 'a
val catch_warnings : (unit -> 'a) -> 'a with_warnings
type 'a with_errors_and_warnings = ('a, t) Result.result with_warnings
val raise_errors_and_warnings : 'a with_errors_and_warnings -> 'a
val catch_errors_and_warnings : (unit -> 'a) -> 'a with_errors_and_warnings
type warnings_options = {
  1. warn_error : bool;
  2. print_warnings : bool;
}
val handle_warnings : warnings_options:warnings_options -> 'a with_warnings -> ('a, [> `Msg of string ]) Result.result
val handle_errors_and_warnings : warnings_options:warnings_options -> 'a with_errors_and_warnings -> ('a, [> `Msg of string ]) Result.result
val print_errors : t list -> unit
val unpack_warnings : 'a with_warnings -> 'a * t list
val t_of_parser_t : Odoc_parser.Warning.t -> t
val raise_parser_warnings : Odoc_parser.t -> Odoc_parser.Ast.t