removed FileExistsException that is not needed

This commit is contained in:
wshen 2011-12-01 10:04:49 -08:00
parent 18bf4cd94b
commit 1dfc65face

View File

@ -322,14 +322,13 @@ public class FileUtils extends Plugin {
* @param newName for the file directory to be called, if null use existing file name * @param newName for the file directory to be called, if null use existing file name
* @param move if false do a copy, if true do a move * @param move if false do a copy, if true do a move
* @return a Entry object * @return a Entry object
* @throws FileExistsException
* @throws NoModificationAllowedException * @throws NoModificationAllowedException
* @throws IOException * @throws IOException
* @throws InvalidModificationException * @throws InvalidModificationException
* @throws EncodingException * @throws EncodingException
* @throws JSONException * @throws JSONException
*/ */
private JSONObject transferTo(String fileName, JSONObject newParent, String newName, boolean move) throws JSONException, FileExistsException, NoModificationAllowedException, IOException, InvalidModificationException, EncodingException { private JSONObject transferTo(String fileName, JSONObject newParent, String newName, boolean move) throws JSONException, NoModificationAllowedException, IOException, InvalidModificationException, EncodingException {
// Check for invalid file name // Check for invalid file name
if (newName != null && newName.contains(":")) { if (newName != null && newName.contains(":")) {
throw new EncodingException("Bad file name"); throw new EncodingException("Bad file name");