store
インターセプターを使用しています。ごくまれに、このインターセプターがSession Already Invalidate
例外をスローし、エラー メッセージをセッションに入れようとすることがあります (MessageStoreInterceptor
行: 282)。
このインターセプターをオーバーライドして、黙って例外を浅くし、アクションを実行させようとしました。
単純に思えますが、例外が発生したときに何を返す必要があるのか わかりません(次のインターセプターを取得するにはどうすればよいですか?!):
public class MyMessageStoreInterceptor extends MessageStoreInterceptor {
@Override
public String intercept(ActionInvocation invocation) throws Exception {
try{
return super.intercept(invocation);
}catch(IllegalStateException ex){
return ??;
}
}
}