mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
cleaning up handling of exceptions. removing unnecessary exception declaration in FileUtils. removing try-catch that should not have been done in HttpHandler
This commit is contained in:
@@ -531,7 +531,7 @@ public class FileUtils extends Plugin {
|
||||
* @throws NoModificationAllowedException
|
||||
* @throws InvalidModificationException
|
||||
*/
|
||||
private JSONObject moveDirectory(File srcDir, File destinationDir) throws JSONException, FileExistsException, NoModificationAllowedException, InvalidModificationException {
|
||||
private JSONObject moveDirectory(File srcDir, File destinationDir) throws JSONException, InvalidModificationException {
|
||||
// Renaming a file to an existing directory should fail
|
||||
if (destinationDir.exists() && destinationDir.isFile()) {
|
||||
throw new InvalidModificationException("Can't rename a file to a directory");
|
||||
|
||||
Reference in New Issue
Block a user