net.sourceforge.sconman
Class SCMSecurityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sourceforge.sconman.SCMException
              extended by net.sourceforge.sconman.SCMSecurityException
All Implemented Interfaces:
java.io.Serializable

public class SCMSecurityException
extends SCMException

This class represents a security violation

Author:
mikeshadow
See Also:
Serialized Form

Constructor Summary
SCMSecurityException(java.lang.String message, User user)
          Constructor for SCMException.
SCMSecurityException(java.lang.String message, User user, Permission violatedPermission)
          Constructor for SCMException.
 
Method Summary
 User getUser()
          Returns the user that couldn't do the action that generated this exception
 Permission getViolatedPermission()
          Returns the permission that the user couldn't satisfy
 
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
 

Constructor Detail

SCMSecurityException

public SCMSecurityException(java.lang.String message,
                            User user)
Constructor for SCMException.

Parameters:
message - Exception message

SCMSecurityException

public SCMSecurityException(java.lang.String message,
                            User user,
                            Permission violatedPermission)
Constructor for SCMException.

Parameters:
message - Exception message
Method Detail

getViolatedPermission

public Permission getViolatedPermission()
Returns the permission that the user couldn't satisfy

Returns:
The violated permission

getUser

public User getUser()
Returns the user that couldn't do the action that generated this exception

Returns:
The user


Copyright null null. All Rights Reserved.