Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 7 8 package javax.naming; 9 10 39 40 41 47 48 49 public class LinkException extends NamingException { 50 60 protected Name linkResolvedName; 61 62 71 protected Object linkResolvedObj; 72 73 83 protected Name linkRemainingName; 84 85 94 protected String linkExplanation; 95 96 103 public LinkException(String explanation) { 104 super(explanation); 105 linkResolvedName = null; 106 linkResolvedObj = null; 107 linkRemainingName = null; 108 linkExplanation = null; 109 } 110 111 115 public LinkException() { 116 super(); 117 linkResolvedName = null; 118 linkResolvedObj = null; 119 linkRemainingName = null; 120 linkExplanation = null; 121 } 122 123 133 public Name getLinkResolvedName() { 134 return this.linkResolvedName; 135 } 136 137 144 public Name getLinkRemainingName() { 145 return this.linkRemainingName; 146 } 147 148 157 public Object getLinkResolvedObj() { 158 return this.linkResolvedObj; 159 } 160 161 171 public String getLinkExplanation() { 172 return this.linkExplanation; 173 } 174 175 183 public void setLinkExplanation(String msg) { 184 this.linkExplanation = msg; 185 } 186 187 205 public void setLinkResolvedName(Name name) { 206 if (name != null) { 207 this.linkResolvedName = (Name )(name.clone()); 208 } else { 209 this.linkResolvedName = null; 210 } 211 } 212 213 230 public void setLinkRemainingName(Name name) { 231 if (name != null) 232 this.linkRemainingName = (Name )(name.clone()); 233 else 234 this.linkRemainingName = null; 235 } 236 237 244 public void setLinkResolvedObj(Object obj) { 245 this.linkResolvedObj = obj; 246 } 247 248 256 public String toString() { 257 return super.toString() + "; Link Remaining Name: '" + 258 this.linkRemainingName + "'"; 259 } 260 261 275 public String toString(boolean detail) { 276 if (!detail || this.linkResolvedObj == null) 277 return this.toString(); 278 279 return this.toString() + "; Link Resolved Object: " + 280 this.linkResolvedObj; 281 } 282 283 286 private static final long serialVersionUID = -7967662604076777712L; 287 }; 288
| Popular Tags
|