J2ME Wireless Toolkit WMA Bridge API

com.sun.kvem.midp.io.j2se.wma.client
Class PhoneNumberNotAvailableException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.sun.kvem.midp.io.j2se.wma.client.PhoneNumberNotAvailableException
All Implemented Interfaces:
java.io.Serializable

public class PhoneNumberNotAvailableException
extends java.lang.Exception

Holds the error condition that occurs when a WMAClient attempts to connect to the WMA Server and requests a phone number that is not available. It contains the phone number that was not available (the requested number) and a suggested phone number that is currently available.

This exception can be thrown by WMAClient.connect

See Also:
Serialized Form

Method Summary
 java.lang.String getRequestedNumber()
          Return the requested phone number.
 java.lang.String getSuggestedNumber()
          Return a suggested phone number.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getRequestedNumber

public java.lang.String getRequestedNumber()
Return the requested phone number. This is the number that is not available.

Returns:
the requested phone number.

getSuggestedNumber

public java.lang.String getSuggestedNumber()
Return a suggested phone number. This phone number is currently available.

Returns:
a suggested phone number.

J2ME Wireless Toolkit WMA Bridge API

Submit feedback to j2mewtk-comments@sun.com.
Copyright © 2003 Sun Microsystems, Inc. All rights reserved.