Skip to main content
pub struct InsertError<T> 
    pub worker_url: String,
    pub url: Option<Url>,
    pub record_count: usize,
    pub records: Vec<Arc<T>>,
    pub message: String,
    pub timestamp: Instant,

An error that occurred during batch insertion. These are collected in the error queue for async error handling.

Fields

worker_url: String

Worker URL where the error occurred

url: Option<Url>

The head node URL in use when the error occurred. None only where the connection had no URL.

record_count: usize

Number of records in the failed batch

records: Vec<Arc<T>>

The records that were not inserted, for a caller to retry or report: a failed batch’s records, or the one record a per-record error names. Empty where the server named a record the batch does not hold, and where the records were lost with an encoding task that panicked; record_count still counts them.

message: String

Error message: the message of the error underneath, without its kind (as KineticaError::message gives it)

timestamp: Instant

Timestamp when the error occurred

Trait Implementations

Source

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source

impl<T> Debug for InsertError<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
1.30.0 · 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