com.atlassian.crowd.exception
Class MembershipNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.atlassian.crowd.exception.CrowdException
              extended by com.atlassian.crowd.exception.ObjectNotFoundException
                  extended by com.atlassian.crowd.exception.MembershipNotFoundException
All Implemented Interfaces:
Serializable

public class MembershipNotFoundException
extends ObjectNotFoundException

Used to denote that a particular USER-GROUP or GROUP-GROUP membership does not exist. This could be thrown in cases where the calling code attempts to remove a user from a group when the user is not a direct member of the group, etc.

See Also:
Serialized Form

Constructor Summary
MembershipNotFoundException(String childName, String parentName)
           
MembershipNotFoundException(String childName, String parentName, Throwable e)
           
 
Method Summary
 String getChildName()
          Returns name of the child.
 String getParentName()
          Returns names of the parent.
 
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

MembershipNotFoundException

public MembershipNotFoundException(String childName,
                                   String parentName)

MembershipNotFoundException

public MembershipNotFoundException(String childName,
                                   String parentName,
                                   Throwable e)
Method Detail

getChildName

public String getChildName()
Returns name of the child.

Returns:
name of the child

getParentName

public String getParentName()
Returns names of the parent.

Returns:
name of the parent


Copyright © 2014 Atlassian. All Rights Reserved.