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