Is there some book or place I can find all the errors on writing a sketch? Something that tells me what to do when I get an error or why its an error?
Not really, no.
If you read the error message carefully, and look around the area of the highlighted error, you can usually work towards a solution.
Yeah, there is. It's even online at Arduino Forum