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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user