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.5.0.tar.gz
md5=41b0317af37925b16ae7aedfddbcc8b4
sha512=f02c4e4c7d8ca92c4c2100d1dfc31c56218a8fae3760135335c9cdd10d9edbeb6eb5e407b430c095f579ce2226c3fe4c314788af5aa35c37d04e4dee5f459cb8

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.