jp.terasoluna.fw.ex.web.struts.action
クラス BLogicExceptionHandler

java.lang.Object
  上位を拡張 org.apache.struts.action.ExceptionHandler
      上位を拡張 jp.terasoluna.fw.ex.web.struts.action.AbstractExceptionHandler
          上位を拡張 jp.terasoluna.fw.ex.web.struts.action.BLogicExceptionHandler
直系の既知のサブクラス:
ApplicationExceptionHandler, ValidationExceptionHandler

public abstract class BLogicExceptionHandler
extends AbstractExceptionHandler

BLogicException用の例外ハンドラクラスです。

バージョン:
1.0.0

コンストラクタの概要
BLogicExceptionHandler()
           
 
メソッドの概要
protected  org.apache.struts.action.ActionMessages convertMessages(jp.terasoluna.fw.service.thin.BLogicMessages blogicMessages, boolean resourceExists)
          BLogicMessagesをActionMessagesに変換します。
protected  org.apache.struts.action.ActionMessages getErrors(Exception ex, org.apache.struts.config.ExceptionConfig ae, org.apache.struts.util.MessageResources resources)
          BLogicExceptionが保持するBLogicMessagesインスタンスから、 エラーメッセージの一覧を表すActionMessagesのインスタンスを構築して返します。
protected  void setModule(org.apache.struts.action.ActionForward forward, Exception ex, org.apache.struts.config.ExceptionConfig ae, org.apache.struts.action.ActionMapping mapping)
          ActionForwardインスタンスに、遷移先モジュールを設定します。
 
クラス jp.terasoluna.fw.ex.web.struts.action.AbstractExceptionHandler から継承されたメソッド
execute, getActionForward, getBundleKey, getMessageResources, setRequestAttribute, storeException
 
クラス org.apache.struts.action.ExceptionHandler から継承されたメソッド
logException, storeException, storeException
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BLogicExceptionHandler

public BLogicExceptionHandler()
メソッドの詳細

getErrors

protected org.apache.struts.action.ActionMessages getErrors(Exception ex,
                                                            org.apache.struts.config.ExceptionConfig ae,
                                                            org.apache.struts.util.MessageResources resources)
BLogicExceptionが保持するBLogicMessagesインスタンスから、 エラーメッセージの一覧を表すActionMessagesのインスタンスを構築して返します。

定義:
クラス AbstractExceptionHandler 内の getErrors
パラメータ:
ex - 例外
ae - ExceptionConfig
resources - メッセージリソース
戻り値:
エラーメッセージの一覧を保持するActionMessagesインスタンス

convertMessages

protected org.apache.struts.action.ActionMessages convertMessages(jp.terasoluna.fw.service.thin.BLogicMessages blogicMessages,
                                                                  boolean resourceExists)
BLogicMessagesをActionMessagesに変換します。

パラメータ:
blogicMessages - BLogicMessagesインスタンス
戻り値:
エラーメッセージの一覧を保持するActionMessagesインスタンス

setModule

protected void setModule(org.apache.struts.action.ActionForward forward,
                         Exception ex,
                         org.apache.struts.config.ExceptionConfig ae,
                         org.apache.struts.action.ActionMapping mapping)
ActionForwardインスタンスに、遷移先モジュールを設定します。

定義:
クラス AbstractExceptionHandler 内の setModule
パラメータ:
forward - 遷移先を表すActionForwardインスタンス
ex - 例外
ae - ExceptionConfig
mapping - アクションマッピング


Copyright © 2012. All Rights Reserved.