Skip to main content

txtx_core/errors/
mod.rs

1use txtx_addon_kit::types::diagnostics::Diagnostic;
2
3#[derive(Debug, Clone)]
4pub enum DiscoveryError {
5    UnknownConstruct(Diagnostic),
6    VariableConstruct(Diagnostic),
7    OutputConstruct(Diagnostic),
8    ModuleConstruct(Diagnostic),
9    ImportConstruct(Diagnostic),
10    AddonConstruct(Diagnostic),
11}
12
13#[derive(Debug, Clone)]
14pub enum DependenciesError {
15    CycleDetected(Diagnostic),
16}
17
18#[derive(Debug, Clone)]
19pub enum ConstructErrors {
20    Discovery(DiscoveryError),
21    Dependencies(DependenciesError),
22}