Struct yottadb::YDBError[][src]

pub struct YDBError {
    pub message: Vec<u8>,
    pub status: i32,
    // some fields omitted
}

An error returned by the underlying YottaDB library.

This error cannot be constructed manually.

Fields

message: Vec<u8>

YottaDB internally uses an error-handling mechanism similar to errno and perror. Since, in a threaded context, another error may occur before the application has a chance to call perror() (in YottaDB, $ZSTATUS), the stringified error must be returned at the same time as the status code.

status: i32

The status returned by a YottaDB function. This will be a YDB_ERR_* constant.

See also

Trait Implementations

impl Clone for YDBError[src]

impl Debug for YDBError[src]

impl Display for YDBError[src]

impl Eq for YDBError[src]

impl Error for YDBError[src]

impl Hash for YDBError[src]

impl PartialEq<YDBError> for YDBError[src]

impl StructuralEq for YDBError[src]

impl StructuralPartialEq for YDBError[src]

Auto Trait Implementations

impl RefUnwindSafe for YDBError[src]

impl Send for YDBError[src]

impl Sync for YDBError[src]

impl Unpin for YDBError[src]

impl UnwindSafe for YDBError[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.