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: StringWorker 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: usizeNumber 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: StringError message: the message of the error underneath, without its kind (as KineticaError::message gives it)
timestamp: InstantTimestamp when the error occurred
Trait Implementations
impl<T> Clone for InsertError<T>
impl<T> Debug for InsertError<T>
The records are summarized by their number, so no Debug is needed of T.
impl<T> Display for InsertError<T>
impl<T> Error for InsertError<T>
fn description(&self) -> &str
use the Display impl or to_string()
replaced by Error::source, which can support downcasting