We consider the generalized Jacobi weight [Formula: see text], [Formula: see text]. As is shown in [D. Dai and L. Zhang, Painlevé VI and Henkel determinants for the generalized Jocobi weight, J. Phys. A: Math. Theor. 43 (2010), Article ID:055207, 14pp.], the corresponding Hankel determinant is the [Formula: see text]-function of a particular Painlevé VI. We present all the possible asymptotic expansions of the solution of the Painlevé VI equation near [Formula: see text] and [Formula: see text] for generic [Formula: see text]. For four special cases of [Formula: see text] which are related to the dimension of the Hankel determinant, we can find the exceptional solutions of the Painlevé VI equation according to the results of [A. Eremenko, A. Gabrielov and A. Hinkkanen, Exceptional solutions to the Painlevé VI equation, preprint (2016), arXiv:1602.04694 ], and thus give another characterization of the Hankel determinant.