JCC
v0.9.2

jain.application.services.jcp
Class ProviderUnavailableException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--jain.application.services.jcp.ProviderUnavailableException

public class ProviderUnavailableException
extends java.lang.RuntimeException

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.

See Also:
Serialized Form

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

CAUSE_UNKNOWN

public static final int CAUSE_UNKNOWN
Constant definition for an unknown cause.

CAUSE_NOT_IN_SERVICE

public static final int CAUSE_NOT_IN_SERVICE
Constant definition for the JcpProvider not in the JcpProvider.IN_SERVICE state.

CAUSE_INVALID_SERVICE

public static final int CAUSE_INVALID_SERVICE
Constant definition for an invalid service string given to JcpPeer.getProvider(String).

CAUSE_INVALID_ARGUMENT

public static final int CAUSE_INVALID_ARGUMENT
Constant definition for an invalid optional argument given to JcpPeer.getProvider(String).
Constructor Detail

ProviderUnavailableException

public ProviderUnavailableException()
Constructor with no cause and string.

ProviderUnavailableException

public ProviderUnavailableException(int cause)
Constructor which takes a cause string.
Parameters:
cause - reason code for this fault

ProviderUnavailableException

public ProviderUnavailableException(java.lang.String s)
Constructor which takes a string description.
Parameters:
s - description of the fault

ProviderUnavailableException

public ProviderUnavailableException(int cause,
                                    java.lang.String s)
Constructor which takes both a string and a cause.
Parameters:
cause - reason code for the fault
s - description of the fault
Method Detail

getCause

public int getCause()
Returns the cause for this exception.

Returns:
The cause of this exception.

JCC
v0.9.2

29 Oct 2000
If you have any comments or queries, please mail them to jcc@research.telcordia.com


Copyright-2000 Sun Microsystems