#[repr(C)]
pub enum Error<'a> {
Show 13 variants
NoError,
MissingRuntimeError,
RuntimeError(FFIString<'a>),
InvalidStringError,
ConfigurationError(FFIString<'a>),
DatabaseError(FFIString<'a>),
NoRowsLeftInStream,
ColumnDecodeError,
ColumnNotFoundError,
ColumnIndexOutOfBoundsError,
InvalidDateError,
InvalidTimeError,
InvalidDateTimeError,
}
Expand description
Representation of all error codes.
Variants§
NoError
Everything’s fine, nothing to worry about.
MissingRuntimeError
Runtime was destroyed or never created and can therefore not be accessed.
RuntimeError(FFIString<'a>)
An error occurred while getting or accessing the runtime.
InvalidStringError
An error occurred while trying to convert a FFIString into a &str due to invalid content
ConfigurationError(FFIString<'a>)
Configuration error
DatabaseError(FFIString<'a>)
Database error
NoRowsLeftInStream
There are no rows left in the stream
ColumnDecodeError
Column could not be converted in the given type
ColumnNotFoundError
Column was not found in row
ColumnIndexOutOfBoundsError
The index in the row was out of bounds
InvalidDateError
The provided date could not be parsed
InvalidTimeError
The provided time could not be parsed
InvalidDateTimeError
The provided datetime could not be parsed