1 23 24 package org.apache.slide.structure; 25 26 import org.apache.slide.common.Uri; 27 import org.apache.slide.util.Messages; 28 29 34 public class LinkedObjectNotFoundException extends StructureException { 35 36 37 39 40 46 public LinkedObjectNotFoundException(Uri linkUri, String targetUri) { 47 super(Messages.format(LinkedObjectNotFoundException.class.getName(), 48 linkUri.toString(), targetUri)); 49 this.linkUri = linkUri.toString(); 50 this.targetUri = targetUri; 51 } 52 53 54 56 57 60 private String linkUri; 61 62 63 66 private String targetUri; 67 68 69 71 72 77 public String getLinkUri() { 78 if (linkUri == null) { 79 return new String (); 80 } else { 81 return linkUri; 82 } 83 } 84 85 86 91 public String getTargetUri() { 92 if (targetUri == null) { 93 return new String (); 94 } else { 95 return targetUri; 96 } 97 } 98 99 } 100 | Popular Tags |