/*******************************************************************************
*
* Copyright (c) 2025 - 2026 Haixing Hu.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0.
*
******************************************************************************/
use Error;
/// Error returned when building a [`crate::ParallelBatchExecutor`].
///
/// ```rust
/// use qubit_batch::{
/// ParallelBatchExecutor,
/// ParallelBatchExecutorBuildError,
/// };
///
/// let error = match ParallelBatchExecutor::builder().thread_count(0).build() {
/// Ok(_) => panic!("zero worker count should be rejected"),
/// Err(error) => error,
/// };
///
/// assert_eq!(error, ParallelBatchExecutorBuildError::ZeroThreadCount);
/// ```