com.cafesoft.cams.access
Class OverlappingPermissionsException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.cafesoft.core.exception.NestedException
                    |
                    +--com.cafesoft.cams.access.OverlappingPermissionsException
All Implemented Interfaces:
Serializable

public class OverlappingPermissionsException
extends NestedException

OverlappingPermissionsException indicates that two Permissions illegally overlap each another within a particular context.

Two Permission instances: A and B are considered to overlap if:

  1. they are implemented by the same Class
  2. their fully-qualfied ResourcePatterns are identical
  3. they have at least one action in common or neither has any actions at all.

See Also:
Serialized Form

Constructor Summary
OverlappingPermissionsException(Permission p1, Permission p2)
          Construct a new OverlappingPermissionsException with no other information.
OverlappingPermissionsException(String message, Permission p1, Permission p2)
          Construct a new OverlappingPermissionsException for the specified message.
OverlappingPermissionsException(String message, Throwable cause, Permission p1, Permission p2)
          Construct a new OverlappingPermissionsException for the specified message and throwable.
OverlappingPermissionsException(Throwable cause, Permission p1, Permission p2)
          Construct a new OverlappingPermissionsException for the specified throwable.
 
Method Summary
 Permission[] getPermissions()
          Get the overlapping Permissions.
 
Methods inherited from class com.cafesoft.core.exception.NestedException
getCause, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OverlappingPermissionsException

public OverlappingPermissionsException(Permission p1,
                                       Permission p2)
Construct a new OverlappingPermissionsException with no other information.


OverlappingPermissionsException

public OverlappingPermissionsException(String message,
                                       Permission p1,
                                       Permission p2)
Construct a new OverlappingPermissionsException for the specified message.

Parameters:
message - a message describing this exception

OverlappingPermissionsException

public OverlappingPermissionsException(Throwable cause,
                                       Permission p1,
                                       Permission p2)
Construct a new OverlappingPermissionsException for the specified throwable.

Parameters:
cause - throwable that caused this exception

OverlappingPermissionsException

public OverlappingPermissionsException(String message,
                                       Throwable cause,
                                       Permission p1,
                                       Permission p2)
Construct a new OverlappingPermissionsException for the specified message and throwable.

Parameters:
message - message describing this exception
cause - throwable that caused this exception
Method Detail

getPermissions

public Permission[] getPermissions()
Get the overlapping Permissions.

Returns:
an array containing the two overlapping Permissions.


Generated on 10:40:31 AM September 10, 2003, © 1996-2003 Cafésoft LLC. All rights reserved.