Module Ppx_core.Location.Error

type location = t
type t = Ocaml_common.Location.error
val createf : loc:location ‑> ('aCaml.Format.formatter, Ppx_core__.Import.unittPpx_core__.Import.format4 ‑> 'a
val message : t ‑> Ppx_core__.Import.string
val set_message : t ‑> Ppx_core__.Import.string ‑> t
val register_error_of_exn : (Ppx_core__.Import.exn ‑> t Ppx_core__.Import.option) ‑> Ppx_core__.Import.unit

Register an exception handler. Exception registered this way will be properly displayed by report_exception.

val of_exn : Ppx_core__.Import.exn ‑> t Ppx_core__.Import.option
val to_extension : t ‑> Ppx_core__.Import.extension

Convert an error to an extension point. The compiler recognizes this and displays the error properly.