package mopsa

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Common exceptions and warnings

Warnings

=-=-=-=-=-=-

val warn : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val warn_at : Location.range -> ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a

Panic exceptions

=-=-=-=-=-=-=-=-=-=-

val pp : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val pp_at : Location.range -> ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
exception Panic of string * string

OCaml line of code

exception PanicAtLocation of Location.range * string * string

OCaml line of code

OCaml line of code

exception PanicAtFrame of Location.range * Callstack.callstack * string * string

OCaml line of code

OCaml line of code

val panic : ?loc:string -> ('a, Stdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'a

Raise a panic exception using a formatted string

val panic_at : ?loc:string -> Location.range -> ('a, Stdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'a
val panic_at_frame : ?loc:string -> Location.range -> Callstack.callstack -> ('a, Stdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'a

=-=-=-=-=-=-=-=-=-=-=-=-=-=-

exception SyntaxError of Location.range * string
exception SyntaxErrorList of (Location.range * string) list
exception UnnamedSyntaxError of Location.range
exception UnnamedSyntaxErrorList of Location.range list
val syntax_error : Location.range -> ('a, Stdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'a
val syntax_errors : (Location.range * string) list -> 'a
val unnamed_syntax_error : Location.range -> 'a
val unnamed_syntax_errors : Location.range list -> 'a
OCaml

Innovation. Community. Security.