package catala

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

Module Catala_utils.ErrorsSource

Error formatting and helper functions

Error exception and printing

Sourceexception StructuredError of string * (string option * Pos.t) list

The payload of the expression is a main error message, with a list of secondary positions related to the error, each carrying an optional secondary message to describe what is pointed by the position.

Sourceval print_structured_error : string -> (string option * Pos.t) list -> string

Error exception and printing

Sourceval raise_spanned_error : ?span_msg:string -> Pos.t -> ('a, Format.formatter, unit, 'b) format4 -> 'a
Sourceval raise_multispanned_error : (string option * Pos.t) list -> ('a, Format.formatter, unit, 'b) format4 -> 'a
Sourceval raise_error : ('a, Format.formatter, unit, 'b) format4 -> 'a

Warning printing

Sourceval format_multispanned_warning : (string option * Pos.t) list -> ('a, Format.formatter, unit) format -> 'a
Sourceval format_spanned_warning : ?span_msg:string -> Pos.t -> ('a, Format.formatter, unit) format -> 'a
Sourceval format_warning : ('a, Format.formatter, unit) format -> 'a
OCaml

Innovation. Community. Security.