com.atlassian.crowd.directory.cache.exception
Class EntityNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.atlassian.crowd.directory.cache.exception.EntityNotFoundException
All Implemented Interfaces:
Serializable

public class EntityNotFoundException
extends Exception

Used to indicate an Entity in cache is KNOWN to NOT exist (as opposed to the state where the cache is not sure whether the entity exists or not). This is a replacement checked-exception for the previous unchecked ObjectNotFoundException. This exception is required to minimise legacy rework as exceptions are heavily used in the DDC and LDAPDC implementations to direct control flow. Yes, this is bad and someone with more time can later fix this.

See Also:
Serialized Form

Constructor Summary
EntityNotFoundException()
           
EntityNotFoundException(String message)
           
EntityNotFoundException(String message, Throwable cause)
           
EntityNotFoundException(Throwable cause)
           
 
Method Summary
 
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

EntityNotFoundException

public EntityNotFoundException()

EntityNotFoundException

public EntityNotFoundException(String message)

EntityNotFoundException

public EntityNotFoundException(String message,
                               Throwable cause)

EntityNotFoundException

public EntityNotFoundException(Throwable cause)


Copyright © 2012 Atlassian. All Rights Reserved.