Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Gobba.Errorstype location = | Location of Lexing.position * Lexing.positiondelimited location
*)| Nowhereno location
*)The location of a lexeme in code
val location_of_lex : Lexing.lexbuf -> locationGet the location of a lexeme
val pp_internalerrort :
Ppx_deriving_runtime.Format.formatter ->
internalerrort ->
Ppx_deriving_runtime.unitval show_internalerrort : internalerrort -> Ppx_deriving_runtime.stringexception InternalError of location * internalerrort * Types.stackframeException Error (loc, err, msg) indicates an error of type err with error message msg, occurring at location loc.
val sraises : Lexing.lexbuf -> string -> Types.stackframe -> 'aUtility function to raise a syntax error quickly
val sraise : Lexing.lexbuf -> string -> 'aval iraises : internalerrort -> Types.stackframe -> 'aUtility function to raise an internal error without a location
val iraise : internalerrort -> 'aval traises : string -> Types.stackframe -> 'aUtility function to raise a type error without a location
val print_location : location -> stringPrint the location of a lexeme
val print_message :
?color:Gobba.Types.T.color ->
?loc:location ->
string ->
string ->
unitPrint a message at a given location loc of message type msg_type.
val print_error : (location * internalerrort * 'a) -> unitPrint the caught error
val print_stacktrace : ('a * 'b * Types.stackframe) -> int -> unit