Kaydet (Commit) 88cd3f3f authored tarafından Michael Stahl's avatar Michael Stahl

svtools: print some exception messages with SAL_WARN

Change-Id: I2d51b6093e13fd5ea2a93c5a4f38e4078587808d
(cherry picked from commit 7dfa45a6)
üst e2bb242e
...@@ -351,9 +351,9 @@ void EmbeddedObjectRef::Clear() ...@@ -351,9 +351,9 @@ void EmbeddedObjectRef::Clear()
{ {
// there's still someone who needs the object! // there's still someone who needs the object!
} }
catch (const uno::Exception&) catch (const uno::Exception& e)
{ {
OSL_FAIL( "Error on switching of the object to loaded state and closing!\n" ); SAL_WARN("svtools.misc", "Error on switching of the object to loaded state and closing: \"" << e.Message << "\"");
} }
} }
} }
...@@ -492,18 +492,18 @@ Size EmbeddedObjectRef::GetSize( MapMode* pTargetMapMode ) const ...@@ -492,18 +492,18 @@ Size EmbeddedObjectRef::GetSize( MapMode* pTargetMapMode ) const
catch(const embed::NoVisualAreaSizeException&) catch(const embed::NoVisualAreaSizeException&)
{ {
} }
catch(const uno::Exception&) catch (const uno::Exception& e)
{ {
OSL_FAIL( "Something went wrong on getting of the size of the object!" ); SAL_WARN("svtools.misc", "Something went wrong on getting of the size of the object: \"" << e.Message << "\"");
} }
try try
{ {
aSourceMapMode = VCLUnoHelper::UnoEmbed2VCLMapUnit(mpImpl->mxObj->getMapUnit(mpImpl->nViewAspect)); aSourceMapMode = VCLUnoHelper::UnoEmbed2VCLMapUnit(mpImpl->mxObj->getMapUnit(mpImpl->nViewAspect));
} }
catch(const uno::Exception&) catch (const uno::Exception& e)
{ {
OSL_FAIL( "Can not get the map mode!" ); SAL_WARN("svtools.misc", "Can not get the map mode: \"" << e.Message << "\"");
} }
} }
......
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