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
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 |
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.
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 exceptions
- description of the fault
getType
public int getType()
- Returns the type of party.
- Returns:
- The type of party.
Send comments to: JSR-43@ectf.org