Skip to main content
pub struct QueueError<T> 
    pub error: KineticaError,
    pub records: Vec<Arc<T>>,

Records the inserter did not queue, and why, for the caller to retry or report.

For BulkInserter::insert, the record. For BulkInserter::insert_batch: the records before the first that cannot be queued are queued, and that one and every one after it come back here; a batch whose JSON does not validate comes back whole. Where the inserter is closed, a full batch it could not send comes back too.

Converts into its KineticaError, so ? works where one is returned, and displays as it does.

Fields

error: KineticaError

Why the records were not queued

records: Vec<Arc<T>>

The records that were not queued, in the order they were given

Trait Implementations

Source

impl<T> Debug for QueueError<T>

The records are summarized by their number, so no Debug is needed of T.

Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more
Source

impl<T> Error for QueueError<T>

Source

fn source(&self) -> Option<&(dyn Error + ‘static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source

fn provide<‘a>(&‘a self, request: &mut Request<‘a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source

fn from(error: QueueError<T>) -> Self

Converts to this type from the input type.