JCAT
v0.3.1

javax.csapi.cc.jcc
Class PrivilegeViolationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.csapi.cc.jcc.PrivilegeViolationException
All Implemented Interfaces:
java.io.Serializable

public class PrivilegeViolationException
extends java.lang.Exception

This exception 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 getType() method in this class.

Since:
1.0b
See Also:
Serialized Form

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

ORIGINATOR_VIOLATION

public static final int ORIGINATOR_VIOLATION
A privilege violation occurred at the origination.

See Also:
Constant Field Values

DESTINATION_VIOLATION

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

See Also:
Constant Field Values

UNKNOWN_VIOLATION

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

See Also:
Constant Field Values
Constructor Detail

PrivilegeViolationException

public PrivilegeViolationException(int type)
Constructor takes no string.

Parameters:
type - kind of violation.

PrivilegeViolationException

public PrivilegeViolationException(int type,
                                   java.lang.String s)
Constructor takes 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.

JCAT
v0.3.1

August, 2003
If you have any comments or queries, please mail them to JSR-122-EG@JCP.ORG

Copyright - 2001, 2003 Sun Microsystems