raphtory_core/entities/graph/tgraph.rs
1use raphtory_api::core::storage::arc_str::ArcStr;
2use std::fmt::Debug;
3use thiserror::Error;
4
5#[derive(Error, Debug)]
6#[error("Invalid layer: {invalid_layer}. Valid layers: {valid_layers:?}")]
7pub struct InvalidLayer {
8 invalid_layer: ArcStr,
9 valid_layers: Vec<String>,
10}
11
12impl InvalidLayer {
13 pub fn new(invalid_layer: ArcStr, valid_layers: Vec<String>) -> Self {
14 Self {
15 invalid_layer,
16 valid_layers,
17 }
18 }
19}