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.
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
reference to other good sample, articles about exception designing are also welcome.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
Thanks atifmk, Buglighter
I knew both suggested ways but now you let me know there are no other proper way.
I may use UnsupportedOperationExcept ion for my case instead of creating my own.
I knew both suggested ways but now you let me know there are no other proper way.
I may use UnsupportedOperationExcept
java.lang.NoSuchMethodExce
BugLighter.