Module Bson.Error

BSON error encapsulation

type t

Type used as an out-parameter to pass error information to the caller.

val domain : t -> int

domain error names the subsystem that generated the error.

val code : t -> int

code error is a domain-specific error type.

val message : t -> string

message error describes the error.