package catala

  1. Overview
  2. Docs
Compiler and library for the literate programming language for tax code specification

Install

Dune Dependency

Authors

Maintainers

Sources

0.7.0.tar.gz
md5=6dbbc2f50c23693f26ab6f048e78172f
sha512=a5701e14932d8a866e2aa3731f76df85ff2a68b4fa943fd510c535913573274d66eaec1ae6fcae17f20b475876048a9ab196ef6d8c23d4ea6b90b986aa0a6daa

doc/catala.utils/Utils/Errors/index.html

Module 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.