catala/runtimes/jsoo
Louis Gesbert 9d07015864 Unify runtime error handling
- Clearly distinguish Exceptions from Errors. The only catchable exception
  available in our AST is `EmptyError`, so the corresponding nodes are made less
  generic, and a node `FatalError` is added

- Runtime errors are defined as a specific type in the OCaml runtime, with a
  carrier exception and printing functions. These are used throughout, and
  consistently by the interpreter. They always carry a position, that can be
  converted to be printed with the fancy compiler location printer, or in a
  simpler way from the backends.

- All operators that might be subject to an error take a position as argument,
  in order to print an informative message without relying on backtraces from
  the backend
2024-04-26 18:31:26 +02:00
..
dune feat(runtimes/jsoo): add a new class type duration with conv functions 2022-07-22 16:52:56 +02:00
runtime.ml Unify runtime error handling 2024-04-26 18:31:26 +02:00
runtime.mli Jsoo runtime: fix over-wrapping of event manager callbacks 2024-03-12 16:05:38 +01:00