package jsonxt

  1. Overview
  2. Docs

Module Jsonxt.Error_infoSource

Parsing error handling

Sourcetype 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
Sourceexception Json_error_info of t
Sourceval create_from_lexbuf : Lexing.lexbuf -> string -> t
Sourceval to_string : t -> string
OCaml

Innovation. Community. Security.