Kaydet (Commit) 5a10e33f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Improve exception messages (for debugging)

Change-Id: Id2e00e0b0363c58c88585dd15f34156e57a7aaac
üst 9b629f29
...@@ -404,7 +404,8 @@ void LoadEnv::startLoading() ...@@ -404,7 +404,8 @@ void LoadEnv::startLoading()
// not started => general error // not started => general error
// We can't say - what was the reason for. // We can't say - what was the reason for.
if (!bStarted) if (!bStarted)
throw LoadEnvException(LoadEnvException::ID_GENERAL_ERROR); throw LoadEnvException(
LoadEnvException::ID_GENERAL_ERROR, "not started");
} }
/*----------------------------------------------- /*-----------------------------------------------
...@@ -1698,7 +1699,9 @@ void LoadEnv::impl_reactForLoadingState() ...@@ -1698,7 +1699,9 @@ void LoadEnv::impl_reactForLoadingState()
if (bThrow) if (bThrow)
{ {
if ( aRequest.isExtractableTo( ::cppu::UnoType< css::uno::Exception >::get() ) ) 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 ---------------------------------- // <- SAFE ----------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment