Borland(R) Enterprise Server VisiBroker(R) プログラマーズリファレンス
public abstract class org.omg.CORBA.UserException extends
java.lang.Exception implements org.omg.CORBA.portable.IDLEntity
UserExceptionクラスはabstractベースクラスであり,オブジェクトインプリメンテーションで発生する可能性がある例外を定義する場合に使用します。この例外型に対応づけられた状態情報はありませんが,派生したクラスが自分自身の状態情報を付けることがあります。コードサンプル9-1に示すように,このクラスの主な目的は,クライアントコード内のcatchブロックを簡単に使用できるようにすることです。
try {
proxy.operation();
}
catch(org.omg.CORBA.SystemException se) {
System.out.println("The runtime failed: " + se);
}
catch(org.omg.CORBA.UserException ue) {
System.out.println("The implementation failed: " + ue);
}
All Rights Reserved. Copyright (C) 2012, 2015, Hitachi, Ltd.
COPYRIGHT (C) 1992-2004 Borland Software Corporation. All rights reserved.