Module Pbrt_yojson.E

All exception which could be raised by the generated JSON encoder and decode function

type error =
  1. | Unexpected_json_type of string * string
  2. | Malformed_variant of string
exception Failure of error

Decoding/Encoding failure

val unexpected_json_type : string -> string -> 'a

unexpected_json_type record_name field_name raises Failure (Unexpected_json_type (record_name, field_name))

val malformed_variant : string -> 'a

malformed_variant variant_name raise Failure (Malformed_variant variant_name)