#error #system #error-tree

batch-mode-batch-error

contains error types for the batch-mode system

1 unstable release

Uses new Rust 2024

new 0.1.1 Mar 31, 2025

#1076 in #error


Used in 2 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

~26–42MB
~661K SLoC