| 43 | /// into a schedule. |
| 44 | #[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)] |
| 45 | pub enum CompileGraphError { |
| 46 | /// A cycle was detected in the graph. |
| 47 | #[error("Failed to compile audio graph: a cycle was detected")] |
| 48 | CycleDetected, |
| 49 | /// The input data contained an edge referring to a non-existing node. |
| 50 | #[error( |
| 51 | "Failed to compile audio graph: input data contains an edge {0:?} referring to a non-existing node {1:?}" |
| 52 | )] |
| 53 | NodeOnEdgeNotFound(Edge, NodeID), |
| 54 | /// The input data contained multiple nodes with the same ID. |
| 55 | #[error( |
| 56 | "Failed to compile audio graph: input data contains multiple nodes with the same ID {0:?}" |
| 57 | )] |
| 58 | NodeIDNotUnique(NodeID), |
| 59 | /// The input data contained multiple edges with the same ID. |
| 60 | #[error( |
| 61 | "Failed to compile audio graph: input data contains multiple edges with the same ID {0:?}" |
| 62 | )] |
| 63 | EdgeIDNotUnique(EdgeID), |
| 64 | /// There was an error constructing the processor |
| 65 | #[error("Failed to construct a node's processor: {0}")] |
| 66 | ProcessorConstructionFailed(String), |
| 67 | } |
| 68 | |
| 69 | /// An error occurred while attempting to activate a |
| 70 | /// [`FirewheelContext`][crate::context::FirewheelContext]. |
nothing calls this directly
no outgoing calls
no test coverage detected