1*61dff127SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*61dff127SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*61dff127SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*61dff127SAndrew Rist * distributed with this work for additional information 6*61dff127SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*61dff127SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*61dff127SAndrew Rist * "License"); you may not use this file except in compliance 9*61dff127SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*61dff127SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*61dff127SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*61dff127SAndrew Rist * software distributed under the License is distributed on an 15*61dff127SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*61dff127SAndrew Rist * KIND, either express or implied. See the License for the 17*61dff127SAndrew Rist * specific language governing permissions and limitations 18*61dff127SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*61dff127SAndrew Rist *************************************************************/ 21*61dff127SAndrew Rist 22*61dff127SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir 25cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 26cdf0e10cSrcweir #include "precompiled_bridges.hxx" 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include <stdio.h> 29cdf0e10cSrcweir #include "share.h" 30cdf0e10cSrcweir 31cdf0e10cSrcweir 32cdf0e10cSrcweir using namespace ::rtl; 33cdf0e10cSrcweir using namespace ::com::sun::star; 34cdf0e10cSrcweir using namespace ::com::sun::star::uno; 35cdf0e10cSrcweir some_more(t_throws_exc p)36cdf0e10cSrcweirstatic void some_more( t_throws_exc p ) 37cdf0e10cSrcweir { 38cdf0e10cSrcweir (*p)(); 39cdf0e10cSrcweir } 40cdf0e10cSrcweir start(t_throws_exc p)41cdf0e10cSrcweirextern "C" void SAL_CALL start( t_throws_exc p ) 42cdf0e10cSrcweir { 43cdf0e10cSrcweir try 44cdf0e10cSrcweir { 45cdf0e10cSrcweir some_more( p ); 46cdf0e10cSrcweir } 47cdf0e10cSrcweir catch (lang::IllegalArgumentException & exc) 48cdf0e10cSrcweir { 49cdf0e10cSrcweir OString msg( OUStringToOString( exc.Message, RTL_TEXTENCODING_ASCII_US ) ); 50cdf0e10cSrcweir printf( "starter.cxx: caught IllegalArgumentException: %s\n", msg.getStr() ); 51cdf0e10cSrcweir } 52cdf0e10cSrcweir catch (Exception & exc) 53cdf0e10cSrcweir { 54cdf0e10cSrcweir OString msg( OUStringToOString( exc.Message, RTL_TEXTENCODING_ASCII_US ) ); 55cdf0e10cSrcweir printf( "starter.cxx: caught some UNO exc: %s\n", msg.getStr() ); 56cdf0e10cSrcweir } 57cdf0e10cSrcweir catch (...) 58cdf0e10cSrcweir { 59cdf0e10cSrcweir printf( "starter.cxx: caught something\n" ); 60cdf0e10cSrcweir } 61cdf0e10cSrcweir } 62