Location.Errorval message : t -> stringval register_error_of_exn : (exn -> t option) -> unitRegister an exception handler. Exception registered this way will be properly displayed by report_exception.
val of_exn : exn -> t optionval to_extension :
t ->
string Location.loc * Migrate_parsetree.Ast_410.Parsetree.payloadConvert an error to an extension point. The compiler recognizes this and displays the error properly.