naia_shared/world/entity/
error.rs

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