package ppx_meta_conv

  1. Overview
  2. Docs
Ppx based type_conv for various tree data formats

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_meta_conv-4.0.1.tar.bz2
sha256=0e9945064e1057e9dccf586434a399fba4251812d14fc51050b2cc5e76a47c2b
md5=536ea6b606a1217feccffac4609b5ece

doc/ppx_meta_conv.runtime/Meta_conv/Error/index.html

Module Meta_conv.Error

Decoding errors
type desc = [
  1. | `Exception of exn
  2. | `Unknown_fields of string * string list * Obj.t
  3. | `Unknown_tag of string * string
  4. | `Required_field_not_found of string * string
  5. | `Wrong_arity of int * int * (string * string) option
  6. | `Primitive_decoding_failure of string
  7. | `Sub_decoders_failed_for_one_of of string
]
type 'target trace = [ `Node of 'target | `Pos of int | `Field of string ] list

Position information of decoded data

type 'target t = desc * 'target * 'target trace
val format : (Format.formatter -> 'target -> unit) -> Format.formatter -> 'target t -> unit

Print out t with its trace

val format_desc : Format.formatter -> desc -> unit

Print out t without its trace

val format_trace_item : (Format.formatter -> 'target -> unit) -> Format.formatter -> [< `Field of string | `Node of 'target | `Pos of int ] -> unit

Print out one trace item

module LocalException (A : sig ... end) : sig ... end

LocalException functor to have exception with target type

OCaml

Innovation. Community. Security.

On This Page
  1. Decoding errors