Improve exception messages (for debugging)

Change-Id: Id2e00e0b0363c58c88585dd15f34156e57a7aaac
This commit is contained in:
Stephan Bergmann
2013-11-01 09:00:17 +01:00
parent 9b629f2967
commit 5a10e33f4d

View File

@@ -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 ----------------------------------