package ppx_deriving_qcheck

  1. Overview
  2. Docs

Error management

val default_loc : Ppxlib.location ref

Default location

val set_loc : Ppxlib.location -> unit

Set default location

val internal_error : ?loc:Ppxlib.location -> unit -> 'a

Internal error without message

val syntax_error : ?loc:Ppxlib.location -> err:char -> unit -> 'a

Syntax error on parsing

val case_unsupported : ?loc:Ppxlib.location -> case:string -> unit -> 'a

Internal error when a pattern matching case is not supported

val property_unsupported : ?loc:Ppxlib.location -> property:string -> unit -> 'a

Error when a pbt.property is not supported

val property_gen_missing : ?loc:Ppxlib.location -> property:string -> required:int -> actual:int -> unit -> 'a

Error when a pbt.property misses generators

val property_arg_missing : ?loc:Ppxlib.location -> property:string -> required:int -> actual:int -> unit -> 'a

Error when a pbt.property misses args

val location_error : ?loc:Ppxlib.location -> msg:string -> unit -> 'a

Error on location with message

OCaml

Innovation. Community. Security.