package ocaml-protoc

  1. Overview
  2. Docs
Pure OCaml compiler for .proto files

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-protoc-3.0.2.tbz
sha256=eb3ca953610cc0766b2a89dcb201d49372949458b7d3cb826e15a5ab35205fec
sha512=8db991f12d3a02f226fb7cf3e99ca02d907497d8b4f48f1393d396594868e25a9fa0e4a3e73322bda8d65e690754b73d2523abf8236e47b77fc0c059f2244e3a

doc/ocaml-protoc.compiler-lib/Ocaml_protoc_compiler_lib/Pb_exception/index.html

Module Ocaml_protoc_compiler_lib.Pb_exceptionSource

Compiler exception

Types

Sourcetype programmatic_error =
  1. | Invalid_string_split
  2. | No_type_found_for_id
Sourcetype error
Sourceexception Compilation_error of error

Exception raised when a compilation error occurs

Raise Functions

Sourceval unresolved_type : field_name:string -> type_:string -> message_name:string -> unit -> 'a
Sourceval duplicated_field_number : field_name:string -> previous_field_name:string -> message_name:string -> unit -> 'a
Sourceval invalid_default_value : ?field_name:string -> info:string -> unit -> 'a
Sourceval unsupported_field_type : ?field_name:string -> field_type:string -> backend_name:string -> unit -> 'a
Sourceval import_file_not_found : string -> 'a
Sourceval programmatic_error : programmatic_error -> 'a
Sourceval invalid_import_qualifier : Pb_location.t -> 'a
Sourceval invalid_file_name : string -> 'a
Sourceval invalid_packed_option : string -> 'a
Sourceval missing_semicolon_for_enum_value : string -> Pb_location.t -> 'a
Sourceval invalid_enum_specification : string -> Pb_location.t -> 'a
Sourceval invalid_mutable_option : ?field_name:string -> unit -> 'a
Sourceval missing_one_of_name : Pb_location.t -> 'a
Sourceval missing_field_label : field_name:string -> message_name:string -> 'a
Sourceval invalid_ppx_extension_option : string -> 'a
Sourceval ocamlyacc_parsing_error : Pb_location.t -> string -> 'a
Sourceval protoc_parsing_error : error -> Pb_location.t -> string -> 'a
Sourceval unknown_parsing_error : msg:string -> context:string -> Pb_location.t -> 'a
Sourceval invalid_protobuf_syntax : string -> 'a
Sourceval invalid_proto3_field_label : field_name:string -> message_name:string -> 'a
Sourceval invalid_rpc_req_type : service_name:string -> rpc_name:string -> unit -> 'a
Sourceval invalid_rpc_res_type : service_name:string -> rpc_name:string -> unit -> 'a
Sourceval default_field_option_not_supported : field_name:string -> message_name:string -> 'a
Sourceval invalid_first_enum_value_proto3 : ?message_name:string -> enum_name:string -> unit -> 'a
Sourceval invalid_key_type_for_map : string -> 'a
Sourceval unsupported_wrapper_type : string -> 'a
OCaml

Innovation. Community. Security.