>>You're throwing a generic exception; Bloch's version throws two specific exceptions, together with appropriate information. Java tends to have excellent error reporting.
I know. I reduced it to one generic exception because that is what the person I was replying to did. Bloch's version is better of course.
I know. I reduced it to one generic exception because that is what the person I was replying to did. Bloch's version is better of course.