Added ConstraintViolationException for mech