summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorAlanTang <alan.tang@ossii.com.tw>2020-02-25 17:39:29 +0800
committerMichael Stahl <michael.stahl@cib.de>2020-02-27 11:04:30 +0100
commitda7617641b5d955610ae25bda65fa10c4ca1b7c3 (patch)
treec1c3c6819f0e9c70eda596270e9ce10c5ab79cff /unotools
parent1782810f886acd26db211d8fdd7ae8796d203c57 (diff)
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.stahl@cib.de> Tested-by: Jenkins
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/ucbhelper/xtempfile.cxx8
1 files changed, 4 insertions, 4 deletions
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();