Module java.naming
Package javax.naming

Class LinkException

java.lang.Object
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LinkLoopException, MalformedLinkException

public class LinkException extends NamingException
This exception is used to describe problems encountered while resolving links. Additional information is added to the base NamingException for pinpointing the problem with the link.

Analogously to how NamingException captures name resolution information, LinkException captures "link"-name resolution information pinpointing the problem encountered while resolving a link. All these fields may be null.

  • Link Resolved Name. Portion of link name that has been resolved.
  • Link Resolved Object. Object to which resolution of link name proceeded.
  • Link Remaining Name. Portion of link name that has not been resolved.
  • Link Explanation. Detail explaining why link resolution failed.

A LinkException instance is not synchronized against concurrent multithreaded access. Multiple threads trying to access and modify a single LinkException instance should lock the object.

Since:
1.3
See Also: