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.
-
ADDRESS_OBJECT
- The invalid object in question is the Address
-
CALL_OBJECT
- The invalid object in question is the Call
-
CONNECTION_OBJECT
- The invalid object in question is the Connection
-
PROVIDER_OBJECT
- The invalid object in question is the Provider
-
TERMINAL_CONNECTION_OBJECT
- The invalid object in question is the Terminal Connection
-
TERMINAL_OBJECT
- The invalid object in question is the Terminal
-
InvalidStateException(Object, int, int)
- Constructor with no string.
-
InvalidStateException(Object, int, int, String)
- Constructor which takes a string description.
-
getObject()
- Returns the object which has the incorrect state.
-
getObjectType()
- Returns the type of object in question.
-
getState()
- Returns the state of the object.
PROVIDER_OBJECT
public final static int PROVIDER_OBJECT
- The invalid object in question is the Provider
CALL_OBJECT
public final static int CALL_OBJECT
- The invalid object in question is the Call
CONNECTION_OBJECT
public final static int CONNECTION_OBJECT
- The invalid object in question is the Connection
TERMINAL_OBJECT
public final static int TERMINAL_OBJECT
- The invalid object in question is the Terminal
ADDRESS_OBJECT
public final static int ADDRESS_OBJECT
- The invalid object in question is the Address
TERMINAL_CONNECTION_OBJECT
public final static int TERMINAL_CONNECTION_OBJECT
- The invalid object in question is the Terminal Connection
InvalidStateException
public InvalidStateException(Object object,
int type,
int state)
- Constructor with no string.
InvalidStateException
public InvalidStateException(Object object,
int type,
int state,
String s)
- Constructor which takes a string description.
getObjectType
public int getObjectType()
- Returns the type of object in question.
- Returns:
- The type of object in question.
getObject
public Object getObject()
- Returns the object which has the incorrect state.
- Returns:
- The object which is in the wrong state.
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