Skip to main content

mz_deploy/project/error/
dependency.rs

1// Copyright Materialize, Inc. and contributors. All rights reserved.
2//
3// Use of this software is governed by the Business Source License
4// included in the LICENSE file.
5//
6// As of the Change Date specified in that file, in accordance with
7// the Business Source License, use of this software will be governed
8// by the Apache License, Version 2.0.
9
10//! Dependency errors for dependency graph analysis.
11//!
12//! This module defines errors that occur during dependency graph
13//! construction and cycle detection.
14
15use crate::project::ir::object_id::ObjectId;
16use thiserror::Error;
17
18/// Errors that occur during dependency graph analysis.
19#[derive(Debug, Error)]
20pub enum DependencyError {
21    /// Circular dependency detected in the object dependency graph
22    #[error("Circular dependency detected: {object}")]
23    CircularDependency {
24        /// The fully qualified name of the object involved in the circular dependency
25        object: ObjectId,
26    },
27}