com.sas.hls.security.privilege.exception
Class PrivilegeExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sas.hls.common.exception.AbstractCheckedException
com.sas.hls.security.privilege.exception.PrivilegeException
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
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 messageexistingPrivs
- the set of privileges which are already defined
getExistingPrivileges
public Set<Privilege> getExistingPrivileges()
- Get the set of privileges which were already defined.
- Returns:
- the existingPrivileges
Copyright (c) 2014, SAS Institute Inc., Cary, NC, USA