jp.ne.mki.wedge.option.logger.handler
クラス LogicErrorDialogHandler

java.lang.Object
  上位を拡張 java.util.logging.Handler
      上位を拡張 jp.ne.mki.wedge.option.logger.handler.LogicErrorDialogHandler

public class LogicErrorDialogHandler
extends java.util.logging.Handler

ロジッククラスにてエラー発生時のダイアログ表示用HANDLER

ロジッククラスにてException発生時 もしくは IO_ERROR_*** などの戻り値 が返された場合に表示する エラーダイアログは このHandlerによって表示されます。

ダイアログ表示対象ログは
LogicExceptionLogRecord もしくは LogicErrorLogRecord
かつ
LogRecordのログレベルが Level.WARNING以上
の場合になります。

このHandlerは RunClient起動時に自動的に Loggerに追加 されます。

導入されたバージョン:
ver1.2.0
関連項目:
jp.ne.mki.wedge.option.log.formatter.LogicErrorDialogFormatter

コンストラクタの概要
LogicErrorDialogHandler()
           
 
メソッドの概要
 void close()
           
 void flush()
           
 java.util.logging.Formatter getFormatter()
          フォーマットクラス取得
 java.util.logging.Level getLevel()
          レベル取得
 void publish(java.util.logging.LogRecord record)
          LogRecordがErrorLogRecord(RunClientにてエラーとして出力した情報)であり、 LevelがWarning以上の場合にダイアログとして表示する
 void setFormatter(java.util.logging.Formatter newFormatter)
          フォーマットクラス設定 セキュリティチェック無し
 void setLevel(java.util.logging.Level newLevel)
          レベル設定 セキュリティチェック無し
 
クラス java.util.logging.Handler から継承されたメソッド
getEncoding, getErrorManager, getFilter, isLoggable, reportError, setEncoding, setErrorManager, setFilter
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

LogicErrorDialogHandler

public LogicErrorDialogHandler()
メソッドの詳細

publish

public void publish(java.util.logging.LogRecord record)
LogRecordがErrorLogRecord(RunClientにてエラーとして出力した情報)であり、 LevelがWarning以上の場合にダイアログとして表示する

定義:
クラス java.util.logging.Handler 内の publish
パラメータ:
record - ログレコード

flush

public void flush()
定義:
クラス java.util.logging.Handler 内の flush

close

public void close()
定義:
クラス java.util.logging.Handler 内の close

setFormatter

public void setFormatter(java.util.logging.Formatter newFormatter)
                  throws java.lang.SecurityException
フォーマットクラス設定 セキュリティチェック無し

オーバーライド:
クラス java.util.logging.Handler 内の setFormatter
例外:
java.lang.SecurityException

getFormatter

public java.util.logging.Formatter getFormatter()
フォーマットクラス取得

オーバーライド:
クラス java.util.logging.Handler 内の getFormatter

setLevel

public void setLevel(java.util.logging.Level newLevel)
              throws java.lang.SecurityException
レベル設定 セキュリティチェック無し

オーバーライド:
クラス java.util.logging.Handler 内の setLevel
例外:
java.lang.SecurityException

getLevel

public java.util.logging.Level getLevel()
レベル取得

オーバーライド:
クラス java.util.logging.Handler 内の getLevel