package lsp

  1. Overview
  2. Docs
LSP protocol implementation in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

jsonrpc-1.6.1.tbz
sha256=bccc0d7194714a4c40c362766ad9095d3c58505a1d4f1dc4becd9b3d1bda8209
sha512=199bee8c74aec6822bc83bf9a7c3757206bdaa55a19cd1f5cf480127618a078baa1e917f6a90a6135a5277e4eb87977e685c10e6503f546997e6b985949e190f

doc/lsp.stdune/Stdune/Exn_with_backtrace/index.html

Module Stdune.Exn_with_backtraceSource

An exception together with the backtrace that raised it.

Sourcetype t = {
  1. exn : exn;
  2. backtrace : Printexc.raw_backtrace;
}
Sourceval try_with : (unit -> 'a) -> ('a, t) Result.t
Sourceval try_with_never_returns : (unit -> Nothing.t) -> t
Sourceval capture : exn -> t

This function should be the very first thing called in the exception handler if you want it to work correctly. Otherwise it might capture an incorrect backtrace.

Sourceval reraise : t -> 'a
Sourceval pp_uncaught : Format.formatter -> t -> unit
Sourceval pp : t -> _ Pp.t
Sourceval map : t -> f:(exn -> exn) -> t
Sourceval map_and_reraise : t -> f:(exn -> exn) -> 'a
Sourceval to_dyn : t -> Dyn.t
OCaml

Innovation. Community. Security.