Link to home
Start Free TrialLog in
Avatar of akky032499
akky032499

asked on

NotYetImplementedException

I am constructing some Java library.

I designed many methods to be required in future but could only implement part of them at now.

What is the best (or better) way to make library users notice that those functions will be supported but have not been implemented yet.(I don't like to erase all unimplemented methods from the sources.)

One idea is to make my own NetYetImplementedException as a child of RuntimeException. But it is strange for me that this kind of exception does not seem to be prepared in core library, or are there?

reference to other good sample, articles about exception designing are also welcome.
Avatar of BugLighter
BugLighter

I think that you might want ot use the:    
java.lang.NoSuchMethodException .        

BugLighter.
ASKER CERTIFIED SOLUTION
Avatar of atifmk
atifmk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Working with the NoSuchMethodException
or semiliar will prevent the Use of this method while developing because the
developer will have to compose a try catch block inorder to use the unsupported method, I preffer to use it this way inorder to protected the API users, but you can either use Atif sulotion.

Regards,
BugLighter.
Avatar of akky032499

ASKER

Thanks atifmk, Buglighter

I knew both suggested ways but now you let me know there are no other proper way.

I may use UnsupportedOperationException for my case instead of creating my own.