[][src]Enum ocaml::CamlError

pub enum CamlError {
    NotFound,
    Failure(&'static str),
    InvalidArgument(&'static str),
    OutOfMemory,
    StackOverflow,
    SysError(&'static str),
    EndOfFile,
    ZeroDivide,
    ArrayBoundError,
    SysBlockedIo,
    Exception(Value),
    WithArg(ValueValue),
}

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(&'static str)

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

impl Debug for CamlError[src]

impl From<CamlError> for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.