1 17 package org.alfresco.service.cmr.model; 18 19 25 public class FileExistsException extends Exception  26 { 27 private static final long serialVersionUID = -4133713912784624118L; 28 29 private FileInfo existing; 30 31 public FileExistsException(FileInfo existing) 32 { 33 super("" + 34 (existing.isFolder() ? "Folder " : "File ") + 35 existing.getName() + 36 " already exists"); 37 this.existing = existing; 38 } 39 40 public FileInfo getExisting() 41 { 42 return existing; 43 } 44 } 45 | Popular Tags |