javax.naming

Class LinkException

Implemented Interfaces:
Serializable
Known Direct Subclasses:
LinkLoopException, MalformedLinkException

public class LinkException
extends NamingException

See Also:
Serialized Form

Field Summary

protected String
linkExplanation
protected Name
linkRemainingName
protected Name
linkResolvedName
protected Object
linkResolvedObj

Fields inherited from class javax.naming.NamingException

remainingName, resolvedName, resolvedObj, rootException

Constructor Summary

LinkException()
Creates a new NamingException without a message.
LinkException(String msg)
Creates a new NamingException with a detailed message.

Method Summary

String
getLinkExplanation()
Name
getLinkRemainingName()
Name
getLinkResolvedName()
Object
getLinkResolvedObj()
void
setLinkExplanation(String msg)
void
setLinkRemainingName(Name name)
void
setLinkResolvedName(Name name)
void
setLinkResolvedObj(Object obj)
String
toString()
Returns a string representation of this exception.
String
toString(boolean detail)
Returns a String representation of this exception and possibly including the part object that could be resolved if the given flag is set to true.

Methods inherited from class javax.naming.NamingException

appendRemainingComponent, appendRemainingName, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, printStackTrace, printStackTrace, printStackTrace, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString

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, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

linkExplanation

protected String linkExplanation

linkRemainingName

protected Name linkRemainingName

linkResolvedName

protected Name linkResolvedName

linkResolvedObj

protected Object linkResolvedObj

Constructor Details

LinkException

public LinkException()
Creates a new NamingException without a message. Does not set any of the rootException, resolvedName, resolvedObj or remainingObject fields. These fields can be set later.

LinkException

public LinkException(String msg)
Creates a new NamingException with a detailed message. Does not set the rootException, resolvedName, resolvedObj or remainingObject, fields. These fields can be set later.

Method Details

getLinkExplanation

public String getLinkExplanation()

getLinkRemainingName

public Name getLinkRemainingName()

getLinkResolvedName

public Name getLinkResolvedName()

getLinkResolvedObj

public Object getLinkResolvedObj()

setLinkExplanation

public void setLinkExplanation(String msg)

setLinkRemainingName

public void setLinkRemainingName(Name name)

setLinkResolvedName

public void setLinkResolvedName(Name name)

setLinkResolvedObj

public void setLinkResolvedObj(Object obj)

toString

public String toString()
Returns a string representation of this exception. Calls toString(false).
Overrides:
toString in interface NamingException

toString

public String toString(boolean detail)
Returns a String representation of this exception and possibly including the part object that could be resolved if the given flag is set to true. Always includes the root cause and the remaining name if not null.
Overrides:
toString in interface NamingException

LinkException.java -- Copyright (C) 2001, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.