pyuno_adapter.cxx (564d9007) | pyuno_adapter.cxx (77dc4149) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 232 unchanged lines hidden (view full) --- 241 SAL_NO_ACQUIRE); 242 raiseInvocationTargetExceptionWhenNeeded( runtime); 243 if( !method.is() ) 244 { 245 OUStringBuffer buf; 246 buf.appendAscii( "pyuno::Adapater: Method " ).append( aFunctionName ); 247 buf.appendAscii( " is not implemented at object " ); 248 PyRef str( PyObject_Repr( mWrappedObject.get() ), SAL_NO_ACQUIRE ); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 232 unchanged lines hidden (view full) --- 241 SAL_NO_ACQUIRE); 242 raiseInvocationTargetExceptionWhenNeeded( runtime); 243 if( !method.is() ) 244 { 245 OUStringBuffer buf; 246 buf.appendAscii( "pyuno::Adapater: Method " ).append( aFunctionName ); 247 buf.appendAscii( " is not implemented at object " ); 248 PyRef str( PyObject_Repr( mWrappedObject.get() ), SAL_NO_ACQUIRE ); |
249 buf.appendAscii( PyBytes_AsString( str.get() )); | 249 buf.append( pyString2ustring( str.get() ) ); |
250 throw IllegalArgumentException( buf.makeStringAndClear(), Reference< XInterface > (),0 ); 251 } 252 253 PyRef pyRet( PyObject_CallObject( method.get(), argsTuple.get() ), SAL_NO_ACQUIRE ); 254 raiseInvocationTargetExceptionWhenNeeded( runtime); 255 if( pyRet.is() ) 256 { 257 ret = runtime.pyObject2Any( pyRet ); --- 176 unchanged lines hidden --- | 250 throw IllegalArgumentException( buf.makeStringAndClear(), Reference< XInterface > (),0 ); 251 } 252 253 PyRef pyRet( PyObject_CallObject( method.get(), argsTuple.get() ), SAL_NO_ACQUIRE ); 254 raiseInvocationTargetExceptionWhenNeeded( runtime); 255 if( pyRet.is() ) 256 { 257 ret = runtime.pyObject2Any( pyRet ); --- 176 unchanged lines hidden --- |