pub struct YDBError {
pub message: Vec<u8>,
pub status: i32,
/* private fields */
}
Expand description
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§
source§impl Error for YDBError
impl Error for YDBError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<YDBError> for YDBError
impl PartialEq<YDBError> for YDBError
impl Eq for YDBError
impl StructuralEq for YDBError
impl StructuralPartialEq for YDBError
Auto Trait Implementations§
impl RefUnwindSafe for YDBError
impl Send for YDBError
impl Sync for YDBError
impl Unpin for YDBError
impl UnwindSafe for YDBError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more