javax.telephony
Class ResourceUnavailableException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.telephony.ResourceUnavailableException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TsapiResourceUnavailableException

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.

Version:
03/23/99 1.11
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, 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

UNKNOWN

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

See Also:
Constant Field Values

ORIGINATOR_UNAVAILABLE

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

See Also:
Constant Field Values

OBSERVER_LIMIT_EXCEEDED

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

See Also:
Constant Field Values

TRUNK_LIMIT_EXCEEDED

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

See Also:
Constant Field Values

OUTSTANDING_METHOD_EXCEEDED

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

See Also:
Constant Field Values

UNSPECIFIED_LIMIT_EXCEEDED

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

See Also:
Constant Field Values

NO_DIALTONE

public static final int NO_DIALTONE
No dialtone detected.

See Also:
Constant Field Values

USER_RESPONSE

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

See Also:
Constant Field Values
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.


Copyright © 2005 Avaya All Rights Reserved.