[Libreoffice-commits] core.git: framework/source
Stephan Bergmann
sbergman at redhat.com
Fri Nov 1 09:00:57 CET 2013
framework/source/loadenv/loadenv.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 5a10e33f4ddc718f05a64629c4133a607ec9b29e
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 1 09:00:17 2013 +0100
Improve exception messages (for debugging)
Change-Id: Id2e00e0b0363c58c88585dd15f34156e57a7aaac
diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx
index d3b67e9..10c85f6 100644
--- a/framework/source/loadenv/loadenv.cxx
+++ b/framework/source/loadenv/loadenv.cxx
@@ -404,7 +404,8 @@ void LoadEnv::startLoading()
// not started => general error
// We can't say - what was the reason for.
if (!bStarted)
- throw LoadEnvException(LoadEnvException::ID_GENERAL_ERROR);
+ throw LoadEnvException(
+ LoadEnvException::ID_GENERAL_ERROR, "not started");
}
/*-----------------------------------------------
@@ -1698,7 +1699,9 @@ void LoadEnv::impl_reactForLoadingState()
if (bThrow)
{
if ( aRequest.isExtractableTo( ::cppu::UnoType< css::uno::Exception >::get() ) )
- throw LoadEnvException( LoadEnvException::ID_GENERAL_ERROR, "", aRequest );
+ throw LoadEnvException(
+ LoadEnvException::ID_GENERAL_ERROR, "interaction request",
+ aRequest);
}
// <- SAFE ----------------------------------
More information about the Libreoffice-commits
mailing list