package catala

  1. Overview
  2. Docs
Low-level language for tax code specification

Install

Dune Dependency

Authors

Maintainers

Sources

0.3.0.tar.gz
md5=4a2c5495f30d8fc2e3bf977df6e602f9
sha512=8dcc404b6068b9dbd76982ade60d8fba1950fdd0a8a626db17429120483367dce1f51997e96d7b8ee5308f305c3bcbb897ef85336f25e9ef3681f4cb9237f56a

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 : string -> ?span_msg:string -> Pos.t -> 'a
Sourceval raise_multispanned_error : string -> (string option * Pos.t) list -> 'a
Sourceval raise_error : string -> 'a

Warning printing

Sourceval print_multispanned_warning : string -> (string option * Pos.t) list -> unit
Sourceval print_spanned_warning : string -> ?span_msg:string -> Pos.t -> unit
Sourceval print_warning : string -> unit
OCaml

Innovation. Community. Security.