More helpful exception message

Change-Id: I63dcc98667ebfc94cc16407d283e65e1514d89fb
This commit is contained in:
Lionel Elie Mamane
2015-03-05 11:28:09 +01:00
parent 09a490ddf5
commit 8992def7c0

View File

@@ -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));
}