// =============================================================================
// Copyright (c) 2025 - 2026 Haixing Hu.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0.
// =============================================================================
//! URI error construction shared by URI values.
use crateFsError;
use crateFsErrorKind;
use crateFsOperation;
/// Builds a sanitized invalid-URI error without retaining input text.
///
/// # Parameters
/// - `message`: Static explanation that contains no untrusted URI input.
///
/// # Returns
/// An invalid-URI error for parsing.
pub