rush_ecs_core/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum CoreError {
5 #[error("region not found in world")]
6 RegionNotFound,
7
8 #[error("entity not found in world")]
9 EntityNotFound,
10
11 #[error("instance not found in world")]
12 InstanceNotFound,
13
14 #[error("component not in entity's tree")]
15 ComponentNotFound,
16
17 #[error("cannot set a different data type")]
18 MismatchedDataType,
19
20 #[error("unsupported component data type")]
21 UnsupportedDataType,
22}