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
This commit is contained in:
AlanTang
2020-02-27 11:04:30 +01:00
committed by Michael Stahl
parent 1782810f88
commit da7617641b
+4 -4
View File
@@ -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();