package jsonxt

  1. Overview
  2. Docs

Parsing error handling

type t = {
  1. line : int;
  2. start_char : int;
  3. end_char : int;
  4. msg : string;
}

t encapsulates a parsing error and has the following fields

  • line: Line where the error occurred
  • start_char: first character of error in line
  • end_char: last character of error in line
  • msg - error message
exception Json_error_info of t
val create_from_lexbuf : Lexing.lexbuf -> string -> t
val to_string : t -> string
OCaml

Innovation. Community. Security.