Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Page 100: Explanation of exception inheritance hierarchy handling in catch blocks is wrong. #75
In the following text:
The bold sentence above says the opposite of the truth. In reality, handlers catch a given type and any of its children's types. This is a very important difference. Newbies will be confused.
The following function can be called to prove that it is the children's types that are caught: