tdf#42982 Improved UNO API error reporting

Making `RuntimeException` instances's messages in  'SyncDbusSessionHelper.hxx' more clear.

Change-Id: I40105102f8785536d29e103a44d20d11c68943bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136629
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
This commit is contained in:
Mahdi Tizabi 2022-06-29 22:08:34 +04:30 committed by Hossein
parent 7f04bb393f
commit cab4fd84ff

View file

@ -43,7 +43,7 @@ namespace shell::sessioninstall
virtual void SAL_CALL InstallGStreamerResources( const css::uno::Sequence< OUString >& resources, const OUString& interaction ) override;
virtual void SAL_CALL InstallResources( const css::uno::Sequence< OUString >& /* types */, const css::uno::Sequence< OUString >& /* resources */, const OUString& /* interaction */ ) override
{ throw css::uno::RuntimeException(); } // not implemented
{ throw css::uno::RuntimeException("InstallResources is not implemented"); } // not implemented
virtual void SAL_CALL RemovePackageByFiles( const css::uno::Sequence< OUString >& files, const OUString& interaction ) override;
@ -53,7 +53,7 @@ namespace shell::sessioninstall
virtual void SAL_CALL IsInstalled( const OUString& /* package_name */, const OUString& /* interaction */, sal_Bool& /* installed */ ) override;
virtual void SAL_CALL SearchFile( const OUString& /* file_name */, const OUString& /* interaction */, sal_Bool& /* installed */, OUString& /* package_name */ ) override
{ throw css::uno::RuntimeException(); } // not implemented
{ throw css::uno::RuntimeException("SearchFile is not implemented"); } // not implemented
private:
SyncDbusSessionHelper( const SyncDbusSessionHelper& ) = delete;