use thiserror::Error;
#[derive(Error, Debug)]
#[error("No object found")]
pub struct NoObjectError;
#[derive(Error, Debug)]
#[error("This parent for this object isn't added to the objects list.")]
pub struct NoParentError;
#[derive(Error, Debug)]
#[error("No Layer found")]
pub struct NoLayerError;
#[derive(Error, Debug)]
#[error("Can't move object any further.")]
pub struct MoveError;
#[derive(Error, Debug)]
#[error("One of the objects doesn't have a rigid body")]
pub struct NoRigidBodyError;
#[derive(Error, Debug)]
#[error("This joint wasn't found in this layer.")]
pub struct NoJointError;