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 ObjectNotFoundException extends StructureException { 35 36 37 39 40 45 public ObjectNotFoundException(Uri objectUri) { 46 this(objectUri.toString()); 47 } 48 49 50 55 public ObjectNotFoundException(String objectUri) { 56 super(Messages.format(ObjectNotFoundException.class.getName(), 57 objectUri)); 58 this.objectUri = objectUri; 59 } 60 61 62 64 65 68 private String objectUri; 69 70 71 73 74 79 public String getObjectUri() { 80 if (objectUri == null) { 81 return new String (); 82 } else { 83 return objectUri; 84 } 85 } 86 87 } 88 | Popular Tags |