use thiserror::Error;
#[derive(Error, Debug)]
#[error("No Layer found")]
pub struct NoLayerError;
#[derive(Error, Debug)]
#[error("One of the objects does not have a rigid body")]
pub struct NoRigidBodyError;
#[derive(Error, Debug)]
#[error("This joint was not found in this layer.")]
pub struct NoJointError;
#[derive(Error, Debug)]
pub enum ObjectError {
#[error("This object can not be moved to this position:\n{0}")]
Move(String),
#[error("This object does not have a parent, so this operation can not be applied.")]
NoParent,
}