Acutis_internals.Error
All of the error messages.
val pp : Stdlib.Format.formatter -> t -> unit
val of_string : string -> t
val handle : ('a -> 'b) -> 'a -> t list * 'b option
Use this to handle functions which may raise an error.
This is equal to Ast.loc
.
val parse_error : int -> loc -> _
val dup_record_key : loc -> string -> _
val extra_record_tag : loc -> _
val bad_block : loc -> _
val bad_field : loc -> _
val type_mismatch :
loc ->
(Stdlib.Format.formatter -> 'ty -> unit) ->
'ty ->
'ty ->
_
val missing_field :
loc ->
string ->
(Stdlib.Format.formatter -> 'ty -> unit) ->
'ty ->
_
val underscore_in_construct : loc -> _
val name_bound_too_many : loc -> string -> _
val var_missing : loc -> string -> _
val var_unused : loc -> string -> unit
val pat_num_mismatch : loc -> _
val map_pat_num_mismatch : loc -> _
val component_name_mismatch : loc -> string -> string -> _
val component_extra_prop : loc -> string -> string -> unit
val interface_duplicate : loc -> string -> _
val interface_bad_name : loc -> string -> _
val interface_untagged_union : loc -> _
val interface_unmatched_tags : loc -> string -> string -> _
val interface_duplicate_tag :
loc ->
(Stdlib.Format.formatter -> 'a -> unit) ->
'a ->
_
val interface_duplicate_enum :
loc ->
(Stdlib.Format.formatter -> 'a -> unit) ->
'a ->
unit
val interface_open_bool_union : loc -> _
val interface_type_mismatch :
loc ->
string ->
(Stdlib.Format.formatter -> 'ty -> unit) ->
'ty ->
'ty ->
_
val interface_missing_prop :
loc ->
string ->
(Stdlib.Format.formatter -> 'ty -> unit) ->
'ty ->
_
val unused_case : loc -> unit
val parmatch : loc -> (Stdlib.Format.formatter -> 'a -> unit) -> 'a -> _
val cycle : loc -> string list -> exn
val missing_component : loc -> string -> exn