Borland(R) Enterprise Server VisiBroker(R) デベロッパーズガイド
オブジェクトのインタフェースをIDLで定義する場合には,オブジェクトが発生させる可能性のあるユーザ例外を指定できます。コードサンプル5-13および5-14に,オブジェクトについて指定するユーザ例外を,idl2cppコンパイラ(C++)またはidl2javaコンパイラ(Java)がUserExceptionコードから派生させる場合について示します。
class UserException: public Exception {
public:
. . .
static const char*_id;
virtual ~UserException();
static UserException *_downcast(Exception *);
};
public abstract class UserException extends
java.lang.Exception {
protected UserException();
protected UserException(String reason);
}
All Rights Reserved. Copyright (C) 2008, Hitachi, Ltd.
COPYRIGHT (C) 1992-2004 Borland Software Corporation. All rights reserved.