pub enum CamlError {
NotFound,
Failure(&'static str),
InvalidArgument(&'static str),
OutOfMemory,
StackOverflow,
SysError(Value),
EndOfFile,
ZeroDivide,
ArrayBoundError,
SysBlockedIo,
Exception(Value),
WithArg(Value, Value),
}
Expand description
Errors that are translated directly into OCaml exceptions
Variants§
NotFound
Not_found
Failure(&'static str)
Failure
InvalidArgument(&'static str)
Invalid_argument
OutOfMemory
Out_of_memory
StackOverflow
Stack_overflow
SysError(Value)
Sys_error
EndOfFile
End_of_file
ZeroDivide
Zero_divide
ArrayBoundError
Array bound error
SysBlockedIo
Sys_blocked_io
Exception(Value)
A pre-allocated OCaml exception
WithArg(Value, Value)
An exception type and argument