summaryrefslogtreecommitdiff
path: root/basic/source/uno/dlgcont.cxx
diff options
context:
space:
mode:
authorSaurav Sachidanand <sauravsachidanand@gmail.com>2017-01-17 22:16:28 +0530
committerStephan Bergmann <sbergman@redhat.com>2017-02-13 20:28:35 +0000
commit2bcefa7aab176bf18b45e7038e91dd07ced6edf7 (patch)
tree2efa79d1846ab87fabecaef6f9fa2c8682bf11d5 /basic/source/uno/dlgcont.cxx
parenteb399d69aa5ad0c04affb830a522c5c1f130813f (diff)
tdf#42982 Make UNO error reporting more descriptive
Change-Id: I0fae43ca1ab23f35e75fd6b88215940596aae09f Reviewed-on: https://gerrit.libreoffice.org/33227 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'basic/source/uno/dlgcont.cxx')
-rw-r--r--basic/source/uno/dlgcont.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx
index a1a1f05f57b4..4bc038033534 100644
--- a/basic/source/uno/dlgcont.cxx
+++ b/basic/source/uno/dlgcont.cxx
@@ -369,12 +369,12 @@ Reference< css::resource::XStringResourcePersistence >
xLibrariesStor = mxStorage->openStorageElement( maLibrariesDir, embed::ElementModes::READ );
// TODO: Should be READWRITE with new storage concept using store() instead of storeTo()
if ( !xLibrariesStor.is() )
- throw uno::RuntimeException();
+ throw uno::RuntimeException("null returned from openStorageElement");
xLibraryStor = xLibrariesStor->openStorageElement( aLibName, embed::ElementModes::READ );
// TODO: Should be READWRITE with new storage concept using store() instead of storeTo()
if ( !xLibraryStor.is() )
- throw uno::RuntimeException();
+ throw uno::RuntimeException("null returned from openStorageElement");
}
catch(const uno::Exception& )
{
@@ -422,12 +422,12 @@ void SfxDialogLibraryContainer::onNewRootStorage()
try {
xLibrariesStor = mxStorage->openStorageElement( maLibrariesDir, embed::ElementModes::READWRITE );
if ( !xLibrariesStor.is() )
- throw uno::RuntimeException();
+ throw uno::RuntimeException("null returned from openStorageElement");
OUString aLibName = pDialogLibrary->getName();
xLibraryStor = xLibrariesStor->openStorageElement( aLibName, embed::ElementModes::READWRITE );
if ( !xLibraryStor.is() )
- throw uno::RuntimeException();
+ throw uno::RuntimeException("null returned from openStorageElement");
Reference< resource::XStringResourceWithStorage >
xStringResourceWithStorage( xStringResourcePersistence, UNO_QUERY );