コード例 #1
0
ファイル: FileTransfer.java プロジェクト: larces/rcsjta
 /**
  * Resend a file transfer which was previously failed. This only for 1-1 file transfer, an
  * exception is thrown in case of a file transfer to group.
  *
  * @throws RcsPermissionDeniedException
  * @throws RcsGenericException
  */
 public void resendTransfer() throws RcsPermissionDeniedException, RcsGenericException {
   try {
     mTransferInf.resendTransfer();
   } catch (Exception e) {
     RcsPermissionDeniedException.assertException(e);
     RcsUnsupportedOperationException.assertException(e);
     throw new RcsGenericException(e);
   }
 }
コード例 #2
0
ファイル: FileTransfer.java プロジェクト: larces/rcsjta
 /**
  * Rejects file transfer invitation
  *
  * @throws RcsPersistentStorageException
  * @throws RcsPermissionDeniedException
  * @throws RcsGenericException
  */
 public void rejectInvitation()
     throws RcsPersistentStorageException, RcsPermissionDeniedException, RcsGenericException {
   try {
     mTransferInf.rejectInvitation();
   } catch (Exception e) {
     RcsUnsupportedOperationException.assertException(e);
     RcsPersistentStorageException.assertException(e);
     RcsPermissionDeniedException.assertException(e);
     throw new RcsGenericException(e);
   }
 }