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

Handle also css::ucb::NameClashException>(aException

Change-Id: I979a163e796418d9a693229698b638cec4bf2226
üst 741e19f7
......@@ -8,9 +8,11 @@
*/
#include <cassert>
#include <iostream>
#include "com/sun/star/uno/Any.hxx"
#include "com/sun/star/ucb/InteractiveAugmentedIOException.hpp"
#include "com/sun/star/ucb/NameClashException.hpp"
#include "ios/ios.hxx"
namespace
......@@ -28,8 +30,12 @@ void lo_ios_throwException(css::uno::Any const& aException)
assert(aException.getValueTypeClass() == css::uno::TypeClass_EXCEPTION);
tryThrow<css::ucb::InteractiveAugmentedIOException>(aException);
tryThrow<css::ucb::NameClashException>(aException);
tryThrow<css::uno::RuntimeException>(aException);
std::cerr << "lo_ios_throwException: Unhandled exception type " << aException.getValueTypeName()
<< std::endl;
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