javax.telephony
Class InvalidPartyException

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

public class InvalidPartyException
extends java.lang.Exception

An InvalidPartyException indicates that a party given as an argument to the method call was invalid. This may either be the originating party of a telephone call or the destination party of a telephone call.

Version:
03/26/99 1.12
See Also:
Serialized Form

Field Summary
static int DESTINATION_PARTY
          Indicates that the destination party was invalid.
static int ORIGINATING_PARTY
          Indicates that the originating party was invalid.
static int UNKNOWN_PARTY
          Indicates that the party was unknown.
 
Constructor Summary
InvalidPartyException(int type)
          Constructor with no string.
InvalidPartyException(int type, java.lang.String s)
          Constructor which takes a string description.
 
Method Summary
 int getType()
          Returns the type of party.
 
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

ORIGINATING_PARTY

public static final int ORIGINATING_PARTY
Indicates that the originating party was invalid.

See Also:
Constant Field Values

DESTINATION_PARTY

public static final int DESTINATION_PARTY
Indicates that the destination party was invalid.

See Also:
Constant Field Values

UNKNOWN_PARTY

public static final int UNKNOWN_PARTY
Indicates that the party was unknown.

See Also:
Constant Field Values
Constructor Detail

InvalidPartyException

public InvalidPartyException(int type)
Constructor with no string.

Parameters:
type - the type of party expected.

InvalidPartyException

public InvalidPartyException(int type,
                             java.lang.String s)
Constructor which takes a string description.

Parameters:
type - type of exception
s - description of the fault
Method Detail

getType

public int getType()
Returns the type of party.

Returns:
The type of party.


Copyright © 2005 Avaya All Rights Reserved.