#error #batch #system #batch-mode-batch-error

batch-mode-batch-error

contains error types for the batch-mode system

1 unstable release

Uses new Rust 2024

0.1.1 Mar 31, 2025

#88 in #batch

Download history 204/week @ 2025-03-31 118/week @ 2025-04-07 52/week @ 2025-04-14 125/week @ 2025-04-21 77/week @ 2025-04-28

434 downloads per month
Used in 65 crates (via language-model-token-expa…)

MIT license

435KB
7K SLoC

this crate contains common errors for the batch-mode system.

// ---------------- [ File: src/batch_error.rs ]
crate::ix!();

error_tree!{

    pub enum ErrorWritingBatchExpansionErrorFile {
        IoError(std::io::Error),
    }

    pub enum BatchError {
        FileMoveError(FileMoveError),
        CreationError(BatchCreationError),
        MetadataError(BatchMetadataError),
        ReconciliationError(BatchReconciliationError),
        ProcessingError(BatchProcessingError),
        DownloadError(BatchDownloadError),
        BatchValidationError(BatchValidationError),
    }

    pub enum BatchCreationError {
        InputCreationError(BatchInputCreationError),
        // Other batch creation errors
    }
}

Dependencies

~23–41MB
~615K SLoC