org.wamblee.security.authentication
Class UserMgtException

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

public class UserMgtException
extends java.lang.RuntimeException

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)
          Creates a new UserMgtException object.
UserMgtException(UserMgtException.Reason aCause, java.lang.String aMessage)
          Creates a new UserMgtException object.
UserMgtException(UserMgtException.Reason aCause, User aUser)
          Creates a new UserMgtException object.
UserMgtException(UserMgtException.Reason aCause, User aUser, Group aGroup)
          Creates a new UserMgtException object.
 
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)
Creates a new UserMgtException object.


UserMgtException

public UserMgtException(UserMgtException.Reason aCause,
                        User aUser)
Creates a new UserMgtException object.


UserMgtException

public UserMgtException(UserMgtException.Reason aCause,
                        Group aGroup)
Creates a new UserMgtException object.


UserMgtException

public UserMgtException(UserMgtException.Reason aCause,
                        User aUser,
                        Group aGroup)
Creates a new UserMgtException object.

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 © 2022. All Rights Reserved.