unotools/source/ucbhelper/xtempfile.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit da7617641b5d955610ae25bda65fa10c4ca1b7c3
Author:     AlanTang <alan.t...@ossii.com.tw>
AuthorDate: Tue Feb 25 17:39:29 2020 +0800
Commit:     Michael Stahl <michael.st...@cib.de>
CommitDate: Thu Feb 27 11:04:30 2020 +0100

    tdf#42982 added description on RuntimeException for unotools
    
    Change-Id: I528d0bd7408ab9761de2d6fe8e60a5a521dda4dd
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89414
    Reviewed-by: Michael Stahl <michael.st...@cib.de>
    Tested-by: Jenkins

diff --git a/unotools/source/ucbhelper/xtempfile.cxx 
b/unotools/source/ucbhelper/xtempfile.cxx
index 0bd03b6b052f..fe47394d96fa 100644
--- a/unotools/source/ucbhelper/xtempfile.cxx
+++ b/unotools/source/ucbhelper/xtempfile.cxx
@@ -65,7 +65,7 @@ sal_Bool SAL_CALL OTempFileService::getRemoveFile()
     if ( !mpTempFile )
     {
         // the stream is already disconnected
-        throw css::uno::RuntimeException();
+        throw css::uno::RuntimeException("Not connected to a file.");
         }
 
     return mbRemoveFile;
@@ -77,7 +77,7 @@ void SAL_CALL OTempFileService::setRemoveFile( sal_Bool 
_removefile )
     if ( !mpTempFile )
     {
         // the stream is already disconnected
-        throw css::uno::RuntimeException();
+        throw css::uno::RuntimeException("Not connected to a file.");
     }
 
     mbRemoveFile = _removefile;
@@ -89,7 +89,7 @@ OUString SAL_CALL OTempFileService::getUri()
 
     if ( !mpTempFile )
     {
-        throw css::uno::RuntimeException();
+        throw css::uno::RuntimeException("Not connected to a file.");
     }
 
     return mpTempFile->GetURL();
@@ -101,7 +101,7 @@ OUString SAL_CALL OTempFileService::getResourceName()
 
     if ( !mpTempFile )
     {
-        throw css::uno::RuntimeException();
+        throw css::uno::RuntimeException("Not connected to a file.");
 }
 
     return mpTempFile->GetFileName();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to