JSR-043: JTAPI-1.4

javax.telephony
Class PrivilegeViolationException

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

public class PrivilegeViolationException
extends java.lang.Exception

A PrivilegeViolationException indicates that an action pertaining to a certain object failed because the application did not have the proper security permissions to execute that command.

This class stores the type of privilege not available which is obtained via the PrivilegeViolationException.getType() method.

See Also:
Serialized Form

Field Summary
static int DESTINATION_VIOLATION
          A privilege violation occurred on the destination.
static int ORIGINATOR_VIOLATION
          A privilege violation occurred on the originator.
static int UNKNOWN_VIOLATION
          A privilege violation occurred at an unknown place.
 
Constructor Summary
PrivilegeViolationException(int type)
          Constructor, takes a type but no string.
PrivilegeViolationException(int type, java.lang.String s)
          Constructor, takes a type and a string.
 
Method Summary
 int getType()
          Returns the type of privilege which is not available.
 
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

ORIGINATOR_VIOLATION

public static final int ORIGINATOR_VIOLATION
A privilege violation occurred on the originator.

DESTINATION_VIOLATION

public static final int DESTINATION_VIOLATION
A privilege violation occurred on the destination.

UNKNOWN_VIOLATION

public static final int UNKNOWN_VIOLATION
A privilege violation occurred at an unknown place.
Constructor Detail

PrivilegeViolationException

public PrivilegeViolationException(int type)
Constructor, takes a type but no string.
Parameters:
type - kind of violation

PrivilegeViolationException

public PrivilegeViolationException(int type,
                                   java.lang.String s)
Constructor, takes a type and a string.
Parameters:
type - kind of violation
s - description of the violation
Method Detail

getType

public int getType()
Returns the type of privilege which is not available.

Returns:
The type of privilege.

JSR-043: JTAPI-1.4

Send comments to: JSR-43@ectf.org