From 0776e75fbc09201052e27a33cbc9e8f117b43596 Mon Sep 17 00:00:00 2001 From: 4k5h1t Date: Sun, 24 Oct 2021 17:28:36 +0530 Subject: 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 --- embeddedobj/source/commonembedding/persistence.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'embeddedobj') 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"; -- cgit v1.2.3