Class java.telephony.InvalidStateException
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.telephony.InvalidStateException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----java.telephony.InvalidStateException

public class InvalidStateException
extends Exception
The current state of the object on which the method exists is not an acceptable pre-condition for the method. Each method which changes the call model typically has a set of states in which the object must be as a pre-condition for the method. Each method documents the pre-condition states for objects. Typically, this method will succeed in the future once the object in question has reached the proper state.

This exception provides the application with the object in question and the state it is currently in.


Variable Index

 o ADDRESS_OBJECT
The invalid object in question is the Address
 o CALL_OBJECT
The invalid object in question is the Call
 o CONNECTION_OBJECT
The invalid object in question is the Connection
 o PROVIDER_OBJECT
The invalid object in question is the Provider
 o TERMINAL_CONNECTION_OBJECT
The invalid object in question is the Terminal Connection
 o TERMINAL_OBJECT
The invalid object in question is the Terminal

Constructor Index

 o InvalidStateException(Object, int, int)
Constructor with no string.
 o InvalidStateException(Object, int, int, String)
Constructor which takes a string description.

Method Index

 o getObject()
Returns the object which has the incorrect state.
 o getObjectType()
Returns the type of object in question.
 o getState()
Returns the state of the object.

Variables

 o PROVIDER_OBJECT
  public final static int PROVIDER_OBJECT
The invalid object in question is the Provider
 o CALL_OBJECT
  public final static int CALL_OBJECT
The invalid object in question is the Call
 o CONNECTION_OBJECT
  public final static int CONNECTION_OBJECT
The invalid object in question is the Connection
 o TERMINAL_OBJECT
  public final static int TERMINAL_OBJECT
The invalid object in question is the Terminal
 o ADDRESS_OBJECT
  public final static int ADDRESS_OBJECT
The invalid object in question is the Address
 o TERMINAL_CONNECTION_OBJECT
  public final static int TERMINAL_CONNECTION_OBJECT
The invalid object in question is the Terminal Connection

Constructors

 o InvalidStateException
  public InvalidStateException(Object object,
                               int type,
                               int state)
Constructor with no string.
 o InvalidStateException
  public InvalidStateException(Object object,
                               int type,
                               int state,
                               String s)
Constructor which takes a string description.

Methods

 o getObjectType
  public int getObjectType()
Returns the type of object in question.

Returns:
The type of object in question.
 o getObject
  public Object getObject()
Returns the object which has the incorrect state.

Returns:
The object which is in the wrong state.
 o getState
  public int getState()
Returns the state of the object.

Returns:
The state of the object.

All Packages  Class Hierarchy  This Package  Previous  Next  Index