// =============================================================================
// Copyright (c) 2025 - 2026 Haixing Hu.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0.
// =============================================================================
//! Validator ID errors.
use Error;
/// A stable validator ID protocol violation.
///
/// # Examples
///
/// ```
/// use qubit_validator::{ValidatorId, ValidatorIdError};
///
/// let error = ValidatorId::try_new("rules..required").unwrap_err();
/// assert_eq!(error, ValidatorIdError::EmptySegment);
/// ```