fix: throw NoSuchCloudFileException if API Error Code is 2002
This commit is contained in:
parent
fe87ae3126
commit
e1bc82b89a
@ -71,7 +71,8 @@ public class PCloudApiError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isNoSuchCloudFileException(int errorCode) {
|
public static boolean isNoSuchCloudFileException(int errorCode) {
|
||||||
return errorCode == PCloudApiErrorCodes.FILE_NOT_FOUND.getValue()
|
return errorCode == PCloudApiErrorCodes.COMPONENT_OF_PARENT_DIRECTORY_DOES_NOT_EXIST.getValue()
|
||||||
|
|| errorCode == PCloudApiErrorCodes.FILE_NOT_FOUND.getValue()
|
||||||
|| errorCode == PCloudApiErrorCodes.FILE_OR_FOLDER_NOT_FOUND.getValue()
|
|| errorCode == PCloudApiErrorCodes.FILE_OR_FOLDER_NOT_FOUND.getValue()
|
||||||
|| errorCode == PCloudApiErrorCodes.DIRECTORY_DOES_NOT_EXIST.getValue();
|
|| errorCode == PCloudApiErrorCodes.DIRECTORY_DOES_NOT_EXIST.getValue();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user