JSR-043: JTAPI-1.4

javax.telephony
Class InvalidPartyException

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

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.

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, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ORIGINATING_PARTY

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

DESTINATION_PARTY

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

UNKNOWN_PARTY

public static final int UNKNOWN_PARTY
Indicates that the party was unknown.
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.

JSR-043: JTAPI-1.4

Send comments to: JSR-43@ectf.org