backhopper_xref/errors.rs
1// Copyright (C) 2026 Michael S. Klishin and Contributors
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3// See LICENSE-APACHE and LICENSE-MIT for details.
4
5use backhopper_core::ApplicationName;
6use backhopper_xref_graph::GraphError;
7use backhopper_xref_reader::ReadError;
8use thiserror::Error;
9
10#[derive(Debug, Error)]
11#[non_exhaustive]
12pub enum XrefError {
13 #[error(transparent)]
14 Read(#[from] ReadError),
15
16 #[error(transparent)]
17 Graph(#[from] GraphError),
18
19 #[error("duplicate application registered: {0}")]
20 DuplicateApplication(ApplicationName),
21}