org.wamblee.usermgt
Class UserMgtException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.wamblee.usermgt.UserMgtException
All Implemented Interfaces:
java.io.Serializable

public class UserMgtException
extends java.lang.Exception

User management exception.

Author:
Erik Brakkee
See Also:
Serialized Form

Nested Class Summary
static class UserMgtException.Reason
          Possible causes for the exception.
 
Constructor Summary
UserMgtException(UserMgtException.Reason aCause, Group aGroup)
           
UserMgtException(UserMgtException.Reason aCause, java.lang.String aMessage)
           
UserMgtException(UserMgtException.Reason aCause, User aUser)
           
UserMgtException(UserMgtException.Reason aCause, User aUser, Group aGroup)
           
 
Method Summary
 Group getGroup()
          Gets the group for which the problem occured.
 UserMgtException.Reason getReason()
          Gets the cause of the problem.
 User getUser()
          Gets the user for which the problem occurred.
 
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

UserMgtException

public UserMgtException(UserMgtException.Reason aCause,
                        java.lang.String aMessage)

UserMgtException

public UserMgtException(UserMgtException.Reason aCause,
                        User aUser)

UserMgtException

public UserMgtException(UserMgtException.Reason aCause,
                        Group aGroup)

UserMgtException

public UserMgtException(UserMgtException.Reason aCause,
                        User aUser,
                        Group aGroup)
Method Detail

getReason

public UserMgtException.Reason getReason()
Gets the cause of the problem.

Returns:
Cause.

getUser

public User getUser()
Gets the user for which the problem occurred.

Returns:
User or null if not applicable.

getGroup

public Group getGroup()
Gets the group for which the problem occured.

Returns:
Group or null if not applicable.


Copyright © 2010. All Rights Reserved.