Package fr.dyade.aaa.jndi2.impl
Class MissingRecordException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.naming.NamingException
-
- fr.dyade.aaa.jndi2.impl.MissingRecordException
-
- All Implemented Interfaces:
Serializable
public class MissingRecordException extends NamingException
Thrown when aContextRecordhas not been found in a naming context. This may happen if the name asked in the JNDI request doesn't exist. That's why this exception includes aNameNotFoundExceptionready to be thrown forward. But the missing record may be resolved. For example, in a distributed configuration a missing record may indicate that the local JNDI server (where the record is missing) is not up to date according to a remote server where the record has been created. In this case, instead of throwing aNameNotFoundExceptionthe JNDI request may be blocked until the update arrives and creates the missing record.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private NamingContextIdnamingContextIdprivate NameNotFoundExceptionnnfeprivate ObjectownerIdprivate static longserialVersionUIDdefine serialVersionUID for interoperability-
Fields inherited from class javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException
-
-
Constructor Summary
Constructors Constructor Description MissingRecordException(NamingContextId namingContextId, Object ownerId, NameNotFoundException nnfe)Constructs aMissingRecordException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NameNotFoundExceptiongetNameNotFoundException()NamingContextIdgetNamingContextId()ObjectgetOwnerId()-
Methods inherited from class javax.naming.NamingException
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability- See Also:
- Constant Field Values
-
namingContextId
private NamingContextId namingContextId
-
ownerId
private Object ownerId
-
nnfe
private NameNotFoundException nnfe
-
-
Constructor Detail
-
MissingRecordException
public MissingRecordException(NamingContextId namingContextId, Object ownerId, NameNotFoundException nnfe)
Constructs aMissingRecordException.- Parameters:
namingContextId- the identifier of the context where the record is missing.ownerId- the owner.nnfe- the naming exception to be thrown if the record really doesn't exist.
-
-
Method Detail
-
getNamingContextId
public final NamingContextId getNamingContextId()
-
getOwnerId
public final Object getOwnerId()
-
getNameNotFoundException
public final NameNotFoundException getNameNotFoundException()
-
-