Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1049 :

Posted: Sun Sep 16, 2012 2:42 pm
by ETS User
Hello folks,

The question text seems confusing to me. It states:

Code: Select all

Consider... exception hierarchy derived from java.lang.Exception as follows:
java.lang.ChannelException
              +-- enthu.trans.DataFloodingException, 
                      enthu.trans.FrameCollisionException
Technically this is okay, but mentioning of "java.lang.ChannelException" may be invoking unnecessary doubts. Perhaps, you wanted to build a four-tier hierarchy like "java.lang.Exception -> enthu.trans.ChannelException ->..." ?

Or it may be an intended trick, I don't know. :-)

Re: About Question enthuware.ocajp.i.v7.2.1049 :

Posted: Mon Sep 17, 2012 9:13 am
by admin
You are right. The package java.lang for a custom exception is not a good idea. It should be changed asap.

thank you for your feedback!