module OBus_string:sig..end
type error = {
|
typ : |
(* |
Type of string ("string", "bus name", "error name", "path",
...)
| *) |
|
str : |
(* |
The string which fail to validate
| *) |
|
ofs : |
(* |
is the position in byte where the validation failed
| *) |
|
msg : |
(* |
explain why the string failed to validate
| *) |
val error_message : error -> stringerror_message error returns a human-readabe error messageval typ : error -> string
val str : error -> string
val ofs : error -> int
val msg : error -> stringtypevalidator =string -> error option
NoneSome(ofs, msg)exception Invalid_string of error
val assert_validate : validator -> string -> unitOBus_string.Invalid_string if the given string failed to
validatetypet =string
val validate : validator