Pbrt_options.E
All exceptions which could be raised by the generated option parsers.
type error =
| Unexpected_option_type of string * string
| Malformed_variant of string
exception Failure of error
Decoding/Encoding failure
val unexpected_option_type : string -> string -> 'a
unexpected_option_type record_name field_name raises Failure (Unexpected_json_type (record_name, field_name))
unexpected_option_type record_name field_name
Failure (Unexpected_json_type (record_name, field_name))
val malformed_variant : string -> 'a
malformed_variant variant_name raise Failure (Malformed_variant variant_name)
malformed_variant variant_name
Failure (Malformed_variant variant_name)