Kaydet (Commit) a97e3a59 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Handle also css::ucb::NameClashException

Change-Id: I979a163e796418d9a693229698b638cec4bf2226
Reviewed-on: https://gerrit.libreoffice.org/62708Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
Tested-by: 's avatarTor Lillqvist <tml@collabora.com>
üst 0531d203
...@@ -8,9 +8,11 @@ ...@@ -8,9 +8,11 @@
*/ */
#include <cassert> #include <cassert>
#include <iostream>
#include "com/sun/star/uno/Any.hxx" #include "com/sun/star/uno/Any.hxx"
#include "com/sun/star/ucb/InteractiveAugmentedIOException.hpp" #include "com/sun/star/ucb/InteractiveAugmentedIOException.hpp"
#include "com/sun/star/ucb/NameClashException.hpp"
#include "ios/ios.hxx" #include "ios/ios.hxx"
namespace namespace
...@@ -28,8 +30,12 @@ void lo_ios_throwException(css::uno::Any const& aException) ...@@ -28,8 +30,12 @@ void lo_ios_throwException(css::uno::Any const& aException)
assert(aException.getValueTypeClass() == css::uno::TypeClass_EXCEPTION); assert(aException.getValueTypeClass() == css::uno::TypeClass_EXCEPTION);
tryThrow<css::ucb::InteractiveAugmentedIOException>(aException); tryThrow<css::ucb::InteractiveAugmentedIOException>(aException);
tryThrow<css::ucb::NameClashException>(aException);
tryThrow<css::uno::RuntimeException>(aException); tryThrow<css::uno::RuntimeException>(aException);
std::cerr << "lo_ios_throwException: Unhandled exception type " << aException.getValueTypeName()
<< std::endl;
assert(false); assert(false);
} }
......
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