package ocaml-protoc-plugin
Module Ocaml_protoc_plugin.ResultSource
Source
type error = [ | `Premature_end_of_input| `Unknown_field_type of int| `Wrong_field_type of string * string| `Illegal_value of string * Field.t| `Unknown_enum_value of int| `Unknown_enum_name of string| `Required_field_missing of int * string
]catch f catches any exception of type Result.Error raised and returns a result type
Pretty printer of the error type
Source
val pp :
(Format.formatter -> 'a -> unit) ->
Format.formatter ->
('a, [< error ]) result ->
unitPrettyprinter