package reason

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Reason_errorsSource

Sourcetype lexing_error =
  1. | Illegal_character of char
  2. | Illegal_escape of string
  3. | Unterminated_comment of Ppxlib.Location.t
  4. | Unterminated_string
  5. | Unterminated_string_in_comment of Ppxlib.Location.t * Ppxlib.Location.t
  6. | Keyword_as_label of string
  7. | Literal_overflow of string
  8. | Invalid_literal of string
Sourcetype ast_error =
  1. | Not_expecting of Ppxlib.Location.t * string
  2. | Other_syntax_error of string
  3. | Variable_in_scope of Ppxlib.Location.t * string
  4. | Applicative_path of Ppxlib.Location.t
Sourcetype parsing_error = string
Sourcetype reason_error =
  1. | Lexing_error of lexing_error
  2. | Parsing_error of parsing_error
  3. | Ast_error of ast_error
Sourceexception Reason_error of reason_error * Ppxlib.Location.t
Sourceval raise_error : reason_error -> Ppxlib.Location.t -> unit
Sourceval raise_fatal_error : reason_error -> Ppxlib.Location.t -> 'a
Sourceval recover_non_fatal_errors : (unit -> 'a) -> ('a, exn) result * (reason_error * Ppxlib.Location.t) list
Sourceval recover_parser_error : (Ppxlib.Location.t -> string -> 'a) -> Ppxlib.Location.t -> string -> 'a
Sourceval report_error : Format.formatter -> loc:Ppxlib.Location.t -> reason_error -> unit
Sourceval error_extension_node_from_recovery : Ppxlib.Location.t -> string -> string Ppxlib.Location.loc * Ppxlib.Parsetree.payload
Sourceval error_extension_node : Ppxlib.Location.t -> string -> string Ppxlib.Location.loc * Ppxlib.Parsetree.payload