diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2015-03-05 11:28:09 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2015-06-17 14:37:45 +0200 |
commit | 8992def7c010d001052b11ec6400b1847dcad774 (patch) | |
tree | 1c171dcb01f00756787b2d1de034c0c1aee1ee70 /embeddedobj | |
parent | 09a490ddf516289b4ce2f70a19603b9590917632 (diff) |
More helpful exception message
Change-Id: I63dcc98667ebfc94cc16407d283e65e1514d89fb
Diffstat (limited to 'embeddedobj')
-rw-r--r-- | embeddedobj/source/general/docholder.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embeddedobj/source/general/docholder.cxx b/embeddedobj/source/general/docholder.cxx index 753ba2da6707..7fb23f8e1c12 100644 --- a/embeddedobj/source/general/docholder.cxx +++ b/embeddedobj/source/general/docholder.cxx @@ -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)); } |