Kaydet (Commit) 8992def7 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

More helpful exception message

Change-Id: I63dcc98667ebfc94cc16407d283e65e1514d89fb
üst 09a490dd
......@@ -1121,7 +1121,7 @@ void SAL_CALL DocumentHolder::queryClosing( const lang::EventObject& aSource, sa
throw (util::CloseVetoException, uno::RuntimeException, std::exception)
{
if ( m_xComponent.is() && m_xComponent == aSource.Source && !m_bAllowClosing )
throw util::CloseVetoException();
throw util::CloseVetoException("To close an embedded document, close the document holder (document definition), not the document itself.", static_cast< ::cppu::OWeakObject*>(this));
}
......
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