com.sas.hls.security.privilege.exception
Class PrivilegeExistsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sas.hls.common.exception.AbstractCheckedException
              extended by com.sas.hls.security.privilege.exception.PrivilegeException
                  extended by com.sas.hls.security.privilege.exception.PrivilegeExistsException
All Implemented Interfaces:
Serializable

public class PrivilegeExistsException
extends PrivilegeException

Thrown when an attempt is made to define a privilege which is already defined.

See Also:
Serialized Form

Constructor Summary
PrivilegeExistsException(String message)
          Constructor with detailed message
PrivilegeExistsException(String message, Set<Privilege> existingPrivs)
          Constructor when multiple privileges are found to be already defined
 
Method Summary
 Set<Privilege> getExistingPrivileges()
          Get the set of privileges which were already defined.
 
Methods inherited from class com.sas.hls.common.exception.AbstractCheckedException
getLocalizedMessage, getMessage, getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrivilegeExistsException

public PrivilegeExistsException(String message)
Constructor with detailed message

Parameters:
message - the detailed message

PrivilegeExistsException

public PrivilegeExistsException(String message,
                                Set<Privilege> existingPrivs)
Constructor when multiple privileges are found to be already defined

Parameters:
message - the detailed message
existingPrivs - the set of privileges which are already defined
Method Detail

getExistingPrivileges

public Set<Privilege> getExistingPrivileges()
Get the set of privileges which were already defined.

Returns:
the existingPrivileges


Copyright (c) 2016, SAS Institute Inc., Cary, NC, USA