madcyclist (4) [Avatar] Offline
#1
Page 6 near bottom, ยง1.3, 3rd bullet point, says, "never throw any kind of exception." But later on it says it might throw errors. I know this appears fussy, but the JLS defines errors as a kind of exception. The quote should read Exception with a capital E because errors are not Exceptions with capital E.
Pierre-Yves Saumont (119) [Avatar] Online
#2
Thank you for spotting this. I am not sure if it's not to late to change this, since the book is about to be published. I will ask. By the way, this seems more like a mistake in the JLS, since it says "Error is the superclass of all the exceptions from which ordinary programs are not ordinarily expected to recover." It should say that "Error is the superclass of all the errors from which ordinary programs are not ordinarily expected to recover."
madcyclist (4) [Avatar] Offline
#3
I am sure nobody else will notice, but the always uses exception except for the class Exception.