|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--jain.jcp.ProviderUnavailableException
This exception indicates that the JcpProvider is currently not available to the application.
This exception is typically thrown in two cases: when JcpPeer.getProvider(String)
is called or
on any method when the JcpProvider is in a JcpProvider.SHUTDOWN
state.
The exception stores the reason for the failure which may be obtained via the getCause()
method on this interface.
Field Summary | |
static int |
CAUSE_INVALID_ARGUMENT
Constant definition for an invalid optional argument given to JcpPeer.getProvider(String) . |
static int |
CAUSE_INVALID_SERVICE
Constant definition for an invalid service string given to JcpPeer.getProvider(String) . |
static int |
CAUSE_NOT_IN_SERVICE
Constant definition for the JcpProvider not in the JcpProvider.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 |
getCause()
Returns the cause for this exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace,
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
JcpProvider.IN_SERVICE
state.public static final int CAUSE_INVALID_SERVICE
JcpPeer.getProvider(String)
.public static final int CAUSE_INVALID_ARGUMENT
JcpPeer.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 getCause()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |