|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.hishidama.eval.EvalExceptionFormatter
public class EvalExceptionFormatter
演算エラーメッセージ編集クラス.
EvalException
用のエラーメッセージを編集する。
コンストラクタの概要 | |
---|---|
EvalExceptionFormatter()
|
メソッドの概要 | |
---|---|
static EvalExceptionFormatter |
getDefault()
デフォルトフォーマッター取得 |
String |
getErrCodeMessage(int code)
コード別メッセージ取得 |
String |
getFormat(EvalException e,
String msgFmt)
フォーマット取得 |
String |
toString(EvalException e)
エラーメッセージ生成. |
String |
toString(EvalException e,
String format)
エラーメッセージ取得. |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public EvalExceptionFormatter()
メソッドの詳細 |
---|
public static EvalExceptionFormatter getDefault()
public String toString(EvalException e)
EvalException
のエラーメッセージを生成する。
e
- 例外
EvalException.toString()
public String getErrCodeMessage(int code)
code
- エラーコード
public String getFormat(EvalException e, String msgFmt)
e
- 例外msgFmt
- 主メッセージ
public String toString(EvalException e, String format)
フォーマットを元にメッセージを編集する。
%0〜9 | 付加情報の0〜9番。存在しない場合は空文字列 |
%c | エラーコード |
%n | 解析名 |
%s | 解析前の文字列 |
%p | エラーが発生した、解析前文字列内の位置 |
%w | エラーの原因となった文字列 |
%e | 何らかの例外発生でエラーとなった場合の、その例外 |
%% | 「%」 |
e
- 例外format
- フォーマット
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |