If the program wants to handle this exception in particular, it should catch CannotProceedException explicitly before attempting to catch NamingException.
A CannotProceedException instance is not synchronized against concurrent multithreaded access. Multiple threads trying to access and modify CannotProceedException should lock the object.
| Modifier and Type | Field and Description |
|---|---|
| protected Name | altName
Contains the name of the resolved object, relative
to the context |
| protected Context | altNameCtx
Contains the context relative to which
|
| protected Hashtable | environment
Contains the environment relevant for the Context or DirContext method that cannot proceed. |
| protected Name | remainingNewName
Contains the remaining unresolved part of the second "name" argument to Context.rename(). |
| private static final long | serialVersionUID
Use serialVersionUID from JNDI 1.1.1 for interoperability
|
| Access | Constructor and Description |
|---|---|
| public | CannotProceedException(String
A possibly null string containing additional
detail about this exception.
If null, this exception has no detail message. explanation)Constructs a new instance of CannotProceedException using an explanation. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Name | Returns: The name of the resolved object, relative toaltNameCtx.
It is a composite name. If null, then no name is specified.Retrieves the |
| public Context | Returns: The context relative to whichaltName is named.
If null, then the default initial context is implied.Retrieves the |
| public Hashtable | Returns: Possibly null environment property set. null means no environment was recorded for this exception.Retrieves the environment that was in effect when this exception was created. |
| public Name | Returns: The possibly null part of the new name that has not been resolved. It is a composite name. It can be null, which means the remaining new name field has not been set.Retrieves the "remaining new name" field of this exception, which is used when this exception is thrown during a rename() operation. |
| public void | setAltName(Name
The name of the resolved object, relative to
altName)altNameCtx.
It is a composite name.
If null, then no name is specified.Sets the |
| public void | setAltNameCtx(Context
The context relative to which altNameCtx)altName
is named. If null, then the default initial context
is implied.Sets the |
| public void | setEnvironment(Hashtable<?, ?>
A possibly null environment property set.
null means no environment is being recorded for
this exception. environment)Sets the environment that will be returned when getEnvironment() is called. |
| public void | setRemainingNewName(Name
The possibly null name to set the "remaining new name" to.
If null, it sets the remaining name field to null. newName)Sets the "remaining new name" field of this exception. |
| altName | back to summary |
|---|---|
| protected Name altName Contains the name of the resolved object, relative
to the context This field is initialized to null. It should not be manipulated directly: it should be accessed and updated using getAltName() and setAltName(). | |
| altNameCtx | back to summary |
|---|---|
| protected Context altNameCtx Contains the context relative to which
This field is initialized to null. It should not be manipulated directly: it should be accessed and updated using getAltNameCtx() and setAltNameCtx().
| |
| environment | back to summary |
|---|---|
| protected Hashtable<?, ?> environment Contains the environment relevant for the Context or DirContext method that cannot proceed. This field is initialized to null. It should not be manipulated directly: it should be accessed and updated using getEnvironment() and setEnvironment().
| |
| remainingNewName | back to summary |
|---|---|
| protected Name remainingNewName Contains the remaining unresolved part of the second "name" argument to Context.rename(). This information is necessary for continuing the Context.rename() operation. This field is initialized to null. It should not be manipulated directly: it should be accessed and updated using getRemainingName() and setRemainingName().
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. Use serialVersionUID from JNDI 1.1.1 for interoperability | |
| CannotProceedException | back to summary |
|---|---|
| public CannotProceedException(String explanation) Constructs a new instance of CannotProceedException using an explanation. All unspecified fields default to null.
| |
| CannotProceedException | back to summary |
|---|---|
| public CannotProceedException() Constructs a new instance of CannotProceedException. All fields default to null. | |
| getAltName | back to summary |
|---|---|
| public Name getAltName() Retrieves the
| |
| getAltNameCtx | back to summary |
|---|---|
| public Context getAltNameCtx() Retrieves the
| |
| getEnvironment | back to summary |
|---|---|
| public Hashtable Retrieves the environment that was in effect when this exception was created.
| |
| getRemainingNewName | back to summary |
|---|---|
| public Name getRemainingNewName() Retrieves the "remaining new name" field of this exception, which is used when this exception is thrown during a rename() operation.
| |
| setAltName | back to summary |
|---|---|
| public void setAltName(Name altName) Sets the
| |
| setAltNameCtx | back to summary |
|---|---|
| public void setAltNameCtx(Context altNameCtx) Sets the
| |
| setEnvironment | back to summary |
|---|---|
| public void setEnvironment(Hashtable<?, ?> environment) Sets the environment that will be returned when getEnvironment() is called.
| |
| setRemainingNewName | back to summary |
|---|---|
| public void setRemainingNewName(Name newName) Sets the "remaining new name" field of this exception.
This is the value returned by
A copy of
| |