1 23 24 package org.apache.slide.content; 25 26 import org.apache.slide.util.Messages; 27 28 33 public class RevisionContentNotFoundException extends ContentException { 34 35 36 38 39 45 public RevisionContentNotFoundException(String objectUri, 46 NodeRevisionNumber number) { 47 super(Messages.format(RevisionContentNotFoundException.class.getName(), 48 number, objectUri)); 49 this.objectUri = objectUri; 50 this.number = number; 51 } 52 53 54 56 57 60 private String objectUri; 61 62 63 66 private NodeRevisionNumber number; 67 68 69 71 72 77 public String getObjectUri() { 78 if (objectUri == null) { 79 return new String (); 80 } else { 81 return objectUri; 82 } 83 } 84 85 86 91 public NodeRevisionNumber getNumber() { 92 return number; 93 } 94 95 } 96 | Popular Tags |