summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/doctemplates.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/doctemplates.cxx')
-rw-r--r--sfx2/source/doc/doctemplates.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index 157539132710..f3b7c4eeb48c 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -775,13 +775,10 @@ bool SfxDocTplService_Impl::createFolder( const OUString& rNewFolderURL,
aParent.insertNewContent( aType, aNames, aValues, rNewFolder );
bCreatedFolder = true;
}
- catch( RuntimeException& )
+ catch( Exception const & )
{
- SAL_WARN( "sfx.doc", "createFolder(): got runtime exception" );
- }
- catch( Exception& )
- {
- SAL_WARN( "sfx.doc", "createFolder(): Could not create new folder" );
+ css::uno::Any ex( cppu::getCaughtException() );
+ SAL_WARN( "sfx.doc", "createFolder(): Could not create new folder " << exceptionToString(ex) );
}
}
else if ( bCreateParent )