Wp.WarningContextual Errors
Warning Manager
type t = {loc : Frama_c_kernel.Filepath.position;severe : bool;source : string;reason : string;fallback : string;}val pretty : Stdlib.Format.formatter -> t -> unitval context : ?source:string -> unit -> contextval flush : context -> Set.tval add : t -> unitval create :
?log:bool ->
?severe:bool ->
?source:string ->
fallback:string ->
('a, Stdlib.Format.formatter, unit, t) Stdlib.format4 ->
'aval emit :
?severe:bool ->
?source:string ->
fallback:string ->
('a, Stdlib.Format.formatter, unit) Stdlib.format ->
'aEmit a warning in current context. Defaults: severe=true, source="wp".
Handle the error and emit a warning with specified severity and fallback if a context has been set. Otherwise, a WP-fatal error is raised instead. Default for severe is false.
val catch :
?source:string ->
?severe:bool ->
fallback:string ->
('a -> 'b) ->
'a ->
'b outcomeSet up a context for the job. If non-handled errors are raised, then a warning is emitted with specified severity and fallback. Default for severe is true.