|
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
java.lang.RuntimeException
javax.csapi.cc.jcc.ProviderUnavailableException
This exception indicates that the JccProvider is currently not available to the application.
This exception is typically thrown in two cases: when JccPeer.getProvider(String)
is called or
on any method when the JccProvider is in a JccProvider.SHUTDOWN
state.
The exception stores the reason for the failure which may be obtained via the getReason()
method on this interface.
Field Summary | |
static int |
CAUSE_INVALID_ARGUMENT
Constant definition for an invalid optional argument given to JccPeer.getProvider(String) . |
static int |
CAUSE_INVALID_SERVICE
Constant definition for an invalid service string given to JccPeer.getProvider(String) . |
static int |
CAUSE_NOT_IN_SERVICE
Constant definition for the JccProvider not in the JccProvider.IN_SERVICE state. |
static int |
CAUSE_UNKNOWN
Constant definition for an unknown cause. |
Constructor Summary | |
ProviderUnavailableException()
Constructor with no cause and string. |
|
ProviderUnavailableException(int cause)
Constructor which takes a cause string. |
|
ProviderUnavailableException(int cause,
java.lang.String s)
Constructor which takes both a string and a cause. |
|
ProviderUnavailableException(java.lang.String s)
Constructor which takes a string description. |
Method Summary | |
int |
getReason()
Returns the cause for this exception. |
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 CAUSE_UNKNOWN
public static final int CAUSE_NOT_IN_SERVICE
JccProvider.IN_SERVICE
state.
public static final int CAUSE_INVALID_SERVICE
JccPeer.getProvider(String)
.
public static final int CAUSE_INVALID_ARGUMENT
JccPeer.getProvider(String)
.
Constructor Detail |
public ProviderUnavailableException()
public ProviderUnavailableException(int cause)
cause
- reason code for this faultpublic ProviderUnavailableException(java.lang.String s)
s
- description of the faultpublic ProviderUnavailableException(int cause, java.lang.String s)
cause
- reason code for the faults
- description of the faultMethod Detail |
public int getReason()
|
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