summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
author4k5h1t <ask160203@gmail.com>2021-10-24 17:28:36 +0530
committerHossein <hossein@libreoffice.org>2021-10-24 16:46:07 +0200
commit0776e75fbc09201052e27a33cbc9e8f117b43596 (patch)
tree62f33cb07de997ccff6546c5f6b624f8641626ce /embeddedobj
parent273a25c796fca9afa0dfadac57dc3f336831221c (diff)
tdf#42982: improve UNO API error reporting
Change-Id: I9300b4e6eb9ee3ff2b9bfd32efdf0c8ceedc9d3c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124113 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/commonembedding/persistence.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx
index 38f6f1909145..7d7ec8aa8a57 100644
--- a/embeddedobj/source/commonembedding/persistence.cxx
+++ b/embeddedobj/source/commonembedding/persistence.cxx
@@ -587,13 +587,13 @@ uno::Reference< io::XInputStream > OCommonEmbeddedObject::StoreDocumentToTempStr
}
if( !xStorable.is() )
- throw uno::RuntimeException(); // TODO:
+ throw uno::RuntimeException("No storage is provided for storing!"); // TODO:
OUString aFilterName = GetFilterName( nStorageFormat );
SAL_WARN_IF( aFilterName.isEmpty(), "embeddedobj.common", "Wrong document service name!" );
if ( aFilterName.isEmpty() )
- throw io::IOException(); // TODO:
+ throw io::IOException("No filter name provided / Wrong document service name"); // TODO:
uno::Sequence< beans::PropertyValue > aArgs( 4 );
aArgs[0].Name = "FilterName";