Module Odoc_xref2.Lookup_failuresSource
Report non-fatal errors.
The main difference with Odoc_model.Error is that no precise location is attached to each failures, instead a filename is given to catch_failures.
Catch failures that are reported by f. filename is the initial location of generated errors, more precise locations can be specified with with_location.
Source
val report :
non_fatal:bool ->
('fmt, Stdlib.Format.formatter, unit, unit) Stdlib.format4 ->
'fmtReport a failure with explicit control over whether it's fatal.
Internal errors happens during compiling and linking.
Root errors happens when a dependency couldn't be loaded. These errors won't be made fatal in "warn error" mode.
Warnings are user errors.
Failures reported indirectly by this function will have a location attached.
Source
val with_context :
('fmt, Stdlib.Format.formatter, unit, (unit -> 'a) -> 'a) Stdlib.format4 ->
'fmtwith_context "format string" format_arguments f adds context to failures reported by f ().