このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


全世界の 機能(する)/行事s in Namespace cppu in Sourcefile exc_hlp.hxx
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


全世界の 機能(する)/行事s in Namespace cppu
in Sourcefile exc_hlp.hxx


getCaughtException
::com::sun::星/主役にする::uno::Any getCaughtException();

事実上の abstract const volatile template static inline C-結合,連鎖
NO NO NO NO NO NO NO NO

要約
Use this 機能(する)/行事 to get the dynamic type of a caught C++-UNO exception;
完全にするs the above 機能(する)/行事 throwing exceptions generically.

Description
try
{
    ...
}
catch (::com::sun::星/主役にする::uno::RuntimeException &)
{
    // you ought not 扱う RuntimeExceptions:
    throw;
}
catch (::com::sun::星/主役にする::uno::Exception &)
{
    ::com::sun::星/主役にする::uno::Any caught( ::cppu::getCaughtException() );
    ...
}

制限s:
- use only for caught C++-UNO exceptions (UNOIDL defined)
- only as first 声明 in a catch 封鎖する!
- don't do a C++ rethrow (throw;) after you have called this 機能(する)/行事
- call getCaughtException() just once in your catch 封鎖する!
  (機能(する)/行事 internally uses a C++ rethrow)
  
Return
          caught UNO exception
          
ATTENTION!
警告を与える!
          This 機能(する)/行事 is 限られた/立憲的な to the same C++ compiler runtime library.
          E.g. for MSVC, this means that the catch handler code (the one
          that calls getCaughtException()) needs to use the very same
          C++ runtime library, e.g. msvcrt.dll as cppuhelper, e.g.
          cppuhelper3MSC.dll and the 橋(渡しをする) library, e.g. msci_uno.dll.
          This is the 事例/患者 if all of them are 収集するd with the same
          compiler 見解/翻訳/版.
          Background: The msci_uno.dll gets a rethrown exception out
          of the 内部の msvcrt.dll thread 地元の 貯蔵 (tls).
          Thus you _must_ not use this 機能(する)/行事 if your code needs to run
          in newer UDK 見解/翻訳/版s without 存在 recompiled, because those
          newer UDK (-> OOo 見解/翻訳/版s) 潜在的に use newer C++ runtime
          libraries which most often become 相いれない!
          
          But this 機能(する)/行事 せねばならない be usable for most OOo 内部の C++-UNO
          開発, because the whole OOo code base is 収集するd using the
          same C++ compiler (and linking against one runtime library).

throwException
無効の throwException(
const ::com::sun::星/主役にする::uno::Any & rExc )
throw( ::com::sun::星/主役にする::uno::Exception );

事実上の abstract const volatile template static inline C-結合,連鎖
NO NO NO NO NO NO NO NO

Description
This 機能(する)/行事 throws the exception given by rExc.  The given value has to
be of typeclass EXCEPTION and must be dervived from or of
type com.sun.星/主役にする.uno.Exception.

Parameters
rExc
       exception to be thrown.

最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.