|
JCAT v0.3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.csapi.cc.jcc.InvalidStateException
An InvalidStateException indicates that that current state of an object involved in the method invocation does not meet the acceptable pre-conditions 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 might succeed later when the object in question reaches the proper state.
This exception provides the application with the object in question and the state it is currently in.
Field Summary | |
static int |
ADDRESS_OBJECT
The invalid object in question is the Address |
static int |
CALL_OBJECT
The invalid object in question is the Call |
static int |
CONNECTION_OBJECT
The invalid object in question is the Connection |
static int |
PROVIDER_OBJECT
The invalid object in question is the Provider |
Constructor Summary | |
InvalidStateException(java.lang.Object object,
int type,
int state)
Constructor with no string. |
|
InvalidStateException(java.lang.Object object,
int type,
int state,
java.lang.String s)
Constructor which takes a string description. |
Method Summary | |
java.lang.Object |
getObject()
Returns the object which has the incorrect state. |
int |
getObjectType()
Returns the type of object in question. |
int |
getState()
Returns the state of the object. |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PROVIDER_OBJECT
public static final int CALL_OBJECT
public static final int CONNECTION_OBJECT
public static final int ADDRESS_OBJECT
Constructor Detail |
public InvalidStateException(java.lang.Object object, int type, int state)
object
- instance associated with the invalid sate.type
- type of failurestate
- current state at time of faultpublic InvalidStateException(java.lang.Object object, int type, int state, java.lang.String s)
object
- instance associated with the invalid sate.type
- type of failurestate
- current state at time of faults
- desciption of the faultMethod Detail |
public int getObjectType()
public java.lang.Object getObject()
public int getState()
|
JCAT v0.3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright - 2001, 2003 Sun Microsystems