'Whole' is a quantitative adjective and the correct form is 'the whole'.
chapter of the book is full of printing errors.
is used before nouns.
shows total of many things together. 'All' is numeral as well as quantitative adjective.
|I will die as all men are mortal.|
|All that glitters is not gold.|
|The whole of India mourned the death of Jayalalithaa.|