JSR-043: JTAPI-1.4

javax.telephony
Class ResourceUnavailableException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.telephony.ResourceUnavailableException
All Implemented Interfaces:
java.io.Serializable

public class ResourceUnavailableException
extends java.lang.Exception

The ResourceUnavailableException indicates that a resource inside the system in not available to complete an operation. The type embodied in this exception further clarifies what is not available and is obtained via the ResourceUnavailableException.getType() method.

See Also:
Serialized Form

Field Summary
static int NO_DIALTONE
          No dialtone detected.
static int OBSERVER_LIMIT_EXCEEDED
          The number of observers existing already reached the limit.
static int ORIGINATOR_UNAVAILABLE
          The originating device was not available for this action.
static int OUTSTANDING_METHOD_EXCEEDED
          The internal resources to handle another method have been exceeded.
static int TRUNK_LIMIT_EXCEEDED
          The number of trunks which are currently in use has been exceeded.
static int UNKNOWN
          Indicates the specific reason is unspecified.
static int UNSPECIFIED_LIMIT_EXCEEDED
          An internal resource, unspecified by the implementation, has been exceeded.
static int USER_RESPONSE
          A user has not responded in the time allowed by an implementation.
 
Constructor Summary
ResourceUnavailableException(int type)
          Constructor, takes a type but no string.
ResourceUnavailableException(int type, java.lang.String s)
          Constructor, takes a type and a string.
 
Method Summary
 int getType()
          Returns the type of resource which was unavailable.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
Indicates the specific reason is unspecified.

ORIGINATOR_UNAVAILABLE

public static final int ORIGINATOR_UNAVAILABLE
The originating device was not available for this action.

OBSERVER_LIMIT_EXCEEDED

public static final int OBSERVER_LIMIT_EXCEEDED
The number of observers existing already reached the limit.

TRUNK_LIMIT_EXCEEDED

public static final int TRUNK_LIMIT_EXCEEDED
The number of trunks which are currently in use has been exceeded.

OUTSTANDING_METHOD_EXCEEDED

public static final int OUTSTANDING_METHOD_EXCEEDED
The internal resources to handle another method have been exceeded.

UNSPECIFIED_LIMIT_EXCEEDED

public static final int UNSPECIFIED_LIMIT_EXCEEDED
An internal resource, unspecified by the implementation, has been exceeded.

NO_DIALTONE

public static final int NO_DIALTONE
No dialtone detected.

USER_RESPONSE

public static final int USER_RESPONSE
A user has not responded in the time allowed by an implementation.
Constructor Detail

ResourceUnavailableException

public ResourceUnavailableException(int type)
Constructor, takes a type but no string.

ResourceUnavailableException

public ResourceUnavailableException(int type,
                                    java.lang.String s)
Constructor, takes a type and a string.
Method Detail

getType

public int getType()
Returns the type of resource which was unavailable.

Returns:
The type of resource unavailable.

JSR-043: JTAPI-1.4

Send comments to: JSR-43@ectf.org