concision_data/
error.rs

1/*
2    Appellation: error <module>
3    Created At: 2025.11.26:17:48:01
4    Contrib: @FL03
5*/
6//! The error module for external datasets and training;
7//!
8
9/// a type alias for a [`Result`](core::result::Result) with an error type of
10/// [`TrainingError`].
11pub type TrainingResult<T> = Result<T, TrainingError>;
12
13/// The [`TrainingError`] type enumerates the various errors that can occur during the
14/// training process.
15#[derive(Debug, thiserror::Error, variants::VariantConstructors)]
16#[non_exhaustive]
17pub enum TrainingError {
18    #[error("Invalid Training Data")]
19    InvalidTrainingData,
20    #[error("Training Failed")]
21    TrainingFailed,
22}