Commits

camlspotter committed 0756417

target type specific error exception

  • Participants
  • Parent commits 24ebba8

Comments (0)

Files changed (1)

           end
         end
 
+An exception for decoding error::
+
+    exception Error of <target_type> error
+
 Encoder and decoder functions for primitive types
 
     The encoder and decoder functions for primitive types (``int``, ``int32``, ``int64``, ``nativeint``, ``char``, ``string``, ``float``, ``list``, ``array``, ``bool``, ``lazy_t``, ``option``) must be accessible in the context. For example, for ``conv(json)``, those have names like ``int_of_json`` and ``json_of_int``.