Enum ocaml::CamlError

source ·
pub enum CamlError {
    NotFound,
    Failure(&'static str),
    InvalidArgument(&'static str),
    OutOfMemory,
    StackOverflow,
    SysError(Value),
    EndOfFile,
    ZeroDivide,
    ArrayBoundError,
    SysBlockedIo,
    Exception(Value),
    WithArg(ValueValue),
}
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(ValueValue)

An exception type and argument

Trait Implementations§

Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.