jp.hishidama.eval
クラス EvalException

java.lang.Object
  上位を拡張 java.lang.Throwable
      上位を拡張 java.lang.Exception
          上位を拡張 java.lang.RuntimeException
              上位を拡張 jp.hishidama.eval.EvalException
すべての実装されたインタフェース:
Serializable
直系の既知のサブクラス:
EvalThroughException

public class EvalException
extends RuntimeException

演算エラークラス.

構文解析に失敗した場合や評価の実行に失敗した場合にスローされる。

バージョン:
2007.03.02
作成者:
ひしだま
関連項目:
直列化された形式

フィールドの概要
static int EXP_FORBIDDEN_CALL
          禁止されたメソッドを呼び出した.
static int EXP_FUNC_CALL_ERROR
          関数呼び出しの失敗
static int EXP_NOT_ARR_VALUE
          配列値が取得できない
static int EXP_NOT_CHAR
          文字として扱えない
static int EXP_NOT_DEF_OBJ
          オブジェクトが未定義
static int EXP_NOT_DEF_VAR
          変数が未定義
static int EXP_NOT_FLD_VALUE
          フィールド値が取得できない
static int EXP_NOT_LET
          代入できない
static int EXP_NOT_LET_ARR
          配列に代入できない
static int EXP_NOT_LET_FIELD
          フィールドに代入できない
static int EXP_NOT_LET_VAR
          変数に代入できない
static int EXP_NOT_NUMBER
          数値として扱えない
static int EXP_NOT_STRING
          文字列として扱えない
static int EXP_NOT_VAR_VALUE
          変数値が取得できない
static int EXP_NOT_VARIABLE
          変数として扱えない
static int PARSE_END_OF_STR
          解釈の途中で文字列が終了した
static int PARSE_INVALID_CHAR
          未定義の文字
static int PARSE_INVALID_OP
          未定義の演算子
static int PARSE_NOT_FOUND_END_OP
          閉じ括弧が存在しない.
static int PARSE_NOT_FUNC
          関数として扱えない
static int PARSE_STILL_EXIST
          解釈が終了したのに文字列が残っている
 
コンストラクタの概要
EvalException(int msg, AbstractExpression exp, Throwable e)
          コンストラクター
EvalException(int msg, Lex lex)
          コンストラクター
EvalException(int msg, String[] opt, Lex lex)
          コンストラクター
EvalException(int msg, String word, AbstractExpression exp, Throwable e)
          コンストラクター
EvalException(int msg, String expName, String word, String string, int pos, Throwable e)
          コンストラクター
 
メソッドの概要
 int getErrorCode()
          エラーコード取得
 String getExpressionName()
          解析名称取得.
 String[] getOption()
          メッセージ付加情報取得
 int getPos()
          エラー発生位置取得
 String getString()
          解析前文字列取得
 String getWord()
          対象識別子取得
 String toString()
           
 
クラス java.lang.Throwable から継承されたメソッド
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

PARSE_NOT_FOUND_END_OP

public static final int PARSE_NOT_FOUND_END_OP
閉じ括弧が存在しない.

%0:閉じ括弧

関連項目:
定数フィールド値

PARSE_INVALID_OP

public static final int PARSE_INVALID_OP
未定義の演算子

関連項目:
定数フィールド値

PARSE_INVALID_CHAR

public static final int PARSE_INVALID_CHAR
未定義の文字

関連項目:
定数フィールド値

PARSE_END_OF_STR

public static final int PARSE_END_OF_STR
解釈の途中で文字列が終了した

関連項目:
定数フィールド値

PARSE_STILL_EXIST

public static final int PARSE_STILL_EXIST
解釈が終了したのに文字列が残っている

関連項目:
定数フィールド値

PARSE_NOT_FUNC

public static final int PARSE_NOT_FUNC
関数として扱えない

関連項目:
定数フィールド値

EXP_FORBIDDEN_CALL

public static final int EXP_FORBIDDEN_CALL
禁止されたメソッドを呼び出した.

考えられる原因:


EXP_NOT_VARIABLE

public static final int EXP_NOT_VARIABLE
変数として扱えない

関連項目:
定数フィールド値

EXP_NOT_NUMBER

public static final int EXP_NOT_NUMBER
数値として扱えない

関連項目:
定数フィールド値

EXP_NOT_LET

public static final int EXP_NOT_LET
代入できない

関連項目:
定数フィールド値

EXP_NOT_CHAR

public static final int EXP_NOT_CHAR
文字として扱えない

関連項目:
定数フィールド値

EXP_NOT_STRING

public static final int EXP_NOT_STRING
文字列として扱えない

関連項目:
定数フィールド値

EXP_NOT_VAR_VALUE

public static final int EXP_NOT_VAR_VALUE
変数値が取得できない

関連項目:
定数フィールド値

EXP_NOT_LET_VAR

public static final int EXP_NOT_LET_VAR
変数に代入できない

関連項目:
定数フィールド値

EXP_NOT_DEF_VAR

public static final int EXP_NOT_DEF_VAR
変数が未定義

関連項目:
定数フィールド値

EXP_NOT_DEF_OBJ

public static final int EXP_NOT_DEF_OBJ
オブジェクトが未定義

関連項目:
定数フィールド値

EXP_NOT_ARR_VALUE

public static final int EXP_NOT_ARR_VALUE
配列値が取得できない

関連項目:
定数フィールド値

EXP_NOT_LET_ARR

public static final int EXP_NOT_LET_ARR
配列に代入できない

関連項目:
定数フィールド値

EXP_NOT_FLD_VALUE

public static final int EXP_NOT_FLD_VALUE
フィールド値が取得できない

関連項目:
定数フィールド値

EXP_NOT_LET_FIELD

public static final int EXP_NOT_LET_FIELD
フィールドに代入できない

関連項目:
定数フィールド値

EXP_FUNC_CALL_ERROR

public static final int EXP_FUNC_CALL_ERROR
関数呼び出しの失敗

関連項目:
定数フィールド値
コンストラクタの詳細

EvalException

public EvalException(int msg,
                     Lex lex)
コンストラクター

パラメータ:
msg - エラーメッセージコード
lex - 字句解析位置
導入されたバージョン:
2007.03.02

EvalException

public EvalException(int msg,
                     String[] opt,
                     Lex lex)
コンストラクター

パラメータ:
msg - エラーメッセージコード
opt - エラーメッセージオプション
lex - 字句解析位置
導入されたバージョン:
2007.03.02

EvalException

public EvalException(int msg,
                     AbstractExpression exp,
                     Throwable e)
コンストラクター

パラメータ:
msg - エラーメッセージコード
exp - Expression
e - 原因となった例外

EvalException

public EvalException(int msg,
                     String word,
                     AbstractExpression exp,
                     Throwable e)
コンストラクター

パラメータ:
msg - エラーメッセージコード
word - 対象文字列
exp - Expression
e - 原因となった例外

EvalException

public EvalException(int msg,
                     String expName,
                     String word,
                     String string,
                     int pos,
                     Throwable e)
コンストラクター

パラメータ:
msg - エラーメッセージコード
expName - 解析名
word - 対象文字列
string - 全文字列
pos - 位置
e - 原因となった例外
導入されたバージョン:
2007.03.02
メソッドの詳細

getErrorCode

public int getErrorCode()
エラーコード取得

戻り値:
エラーコード
導入されたバージョン:
2007.03.02

getOption

public String[] getOption()
メッセージ付加情報取得

戻り値:
付加情報
導入されたバージョン:
2007.03.02

getExpressionName

public String getExpressionName()
解析名称取得.

戻り値:
解析名

getWord

public String getWord()
対象識別子取得

戻り値:
文字列
導入されたバージョン:
2007.03.02

getString

public String getString()
解析前文字列取得

戻り値:
文字列
導入されたバージョン:
2007.03.02

getPos

public int getPos()
エラー発生位置取得

戻り値:
位置
導入されたバージョン:
2007.03.02

toString

public String toString()
オーバーライド:
クラス Throwable 内の toString
関連項目:
EvalExceptionFormatter.toString(EvalException)