これは私のシナリオですが、私は別の階層からのような任意の例外が含まれている、と怒鳴るコードスナップが、私はそう比較例外
private List<java.lang.Class> connectionExceptions;
try {
// trying to connect to external module;
} catch(Exception e) {
// Need to compare this exception e with a list of exceptions which I have,
// and the action depends on the results. There may be some other exception
// which are not in the list.
}
を行うために必要なものを説明します、どのように私は比較することができますの例外のリストを持っています例外がリストや他のものに含まれている場合は、何らかのアクションが必要です。
私が知っているコントロールの流れは例外ではありません。しかし、私はそれを行う必要があります。
「リスト」を使用できないのはなぜですか? –
KrishPrabakar