Module Markup.Error

module Error: sig .. end

Error type and to_string function.


type t = [ `Bad_content of string
| `Bad_document of string
| `Bad_namespace of string
| `Bad_token of string * string * string
| `Decoding_error of string * string
| `Misnested_tag of string * string
| `Unexpected_eoi of string
| `Unmatched_end_tag of string
| `Unmatched_start_tag of string ]

Errors reported by the parsers. A few of these are also used by the writers.

val to_string : ?location:Markup.location -> t -> string

Converts an error to human-readable form. If ~location is specified, location information is prepended to the output.