In this work, we have investigated whether Y(4260) and Z + 2 (4250) could be D1D or D0D * molecules in the framework of meson exchange model. The off-diagonal interaction induced by π exchange plays a dominant role. The σ exchange has been taken into account, which leads to diagonal interaction. The contribution of σ exchange is not favorable to the formation of molecular state with I G (J PC ) = 0 − (1 −− ), however, it is beneficial to the binding of molecule with I G (J P ) = 1 − (1 − ). Light vector meson exchange leads to diagonal interaction as well. For Z + 2 (4250), the contribution from ρ and ω exchange almost cancels each other. For the currently allowed values of the effective coupling constants and a reasonable cutoff Λ in the range 1-2 GeV, We find that Y(4260) could be accommodated as a D1D and D0D * molecule, whereas the interpretation of Z + 2 (4250) as a D1D or D0D * molecule is disfavored. The bottom analog of Y(4260) and Z + 2 (4250) may exist, and the most promising channels to discovery them are π + π − Υ and π + χ b1 respectively.