CoderInNetwork
CoderInNetwork

Reputation: 3083

why I get "not supported yet" exception in j2me in send receive sms?

I try to send and receive sms in j2me but when Netbeans suggest method for me it also adds an exception in it:

 ms.setMessageListener(new MessageListener() {

     public void notifyIncomingMessage(MessageConnection mc) {
         throw new UnsupportedOperationException("Not supported yet.");
     }
 });

I nearly sure that j2me WMA support this method. So what is the problem that Netbeans throw this exception?

Upvotes: 1

Views: 216

Answers (3)

Ameer Moaaviah
Ameer Moaaviah

Reputation: 1526

Its just a reminder by NetBeans that you need to provide its implementation.

Upvotes: 0

Senthil Kumar
Senthil Kumar

Reputation: 10255

NetBeans is just creating a template for you to edit, you can have your own implementation in the place of unsupported exception.

Upvotes: 1

Meier
Meier

Reputation: 3880

The netbeans generator puts it in so you can change it to do what you want to do there. If you forget to change it, the exception will remind you.

Upvotes: 1

Related Questions