bevy_procedural_tree/
errors.rs

1use std::{error::Error, fmt::Display};
2
3#[derive(Debug)]
4pub struct IndicesOverflowError;
5
6impl Error for IndicesOverflowError {}
7
8impl Display for IndicesOverflowError {
9    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
10        write!(f, "Indices overflow in mesh generation: Please reduce amount of sections, segments or leaves or enable the u32_indices feature.")
11    }
12}