naia_shared/world/entity/error.rs
1use std::error::Error;
2
3/// Error returned when an entity look-up fails during entity-to-global conversion.
4#[derive(Debug)]
5pub struct EntityDoesNotExistError;
6impl Error for EntityDoesNotExistError {}
7impl std::fmt::Display for EntityDoesNotExistError {
8 fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
9 write!(f, "Error while attempting to look-up an Entity value for conversion: Entity was not found!")
10 }
11}