Module Tportmidi.Error


type t = error

See error.

val equal : error -> error -> bool

equal e0 e1 is true iff e0 is equal to e1.

val message : error -> string

message e is an error message for e. If e is host_error this returns the host error text.

Error constants

val host_error : t
val invalid_device_id : t
val insufficient_memory : t
val buffer_too_small : t
val buffer_overflow : t
val bad_ptr : t
val bad_data : t
val internal_error : t
val buffer_max_size : t
val not_implemented : t
val interface_not_supported : t
val name_conflict : t