1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-17 03:12:54 +00:00

Improved detection of exceptions in uplaods due to local errors

This commit is contained in:
David A. Velasco
2016-03-21 14:45:23 +01:00
parent 78b9aa6247
commit 0bfc385707
4 changed files with 83 additions and 18 deletions
@@ -25,6 +25,7 @@
package com.owncloud.android.lib.common.operations;
import java.io.ByteArrayInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
@@ -260,6 +261,9 @@ public class RemoteOperationResult implements Serializable {
mCode = ResultCode.SSL_ERROR;
}
} else if (e instanceof FileNotFoundException) {
mCode = ResultCode.LOCAL_FILE_NOT_FOUND;
} else {
mCode = ResultCode.UNKNOWN_ERROR;
}