jp.terasoluna.fw.file.dao
クラス FileLineException

java.lang.Object
  上位を拡張 java.lang.Throwable
      上位を拡張 java.lang.Exception
          上位を拡張 java.lang.RuntimeException
              上位を拡張 jp.terasoluna.fw.file.dao.FileException
                  上位を拡張 jp.terasoluna.fw.file.dao.FileLineException
すべての実装されたインタフェース:
Serializable

public class FileLineException
extends FileException

ファイルから行のデータを読み取る際に発生した例外をラップするクラス。
エラーの情報として以下を持つ。

※注意事項 FileLineExceptionに格納される行番号情報はファイルに対する行番号ではなく データ部内の行番号です。
ヘッダ部が存在する場合はファイルの行番号と合わない為気をつけること。

関連項目:
直列化された形式

コンストラクタの概要
FileLineException(Exception e)
          コンストラクタ。
FileLineException(Exception e, String fileName, int lineNo)
          コンストラクタ。
FileLineException(Exception e, String fileName, int lineNo, String columnName, int columnIndex)
          コンストラクタ。
FileLineException(String message)
          コンストラクタ。
FileLineException(String message, Exception e)
          コンストラクタ。
FileLineException(String message, Exception e, String fileName, int lineNo)
          コンストラクタ。
FileLineException(String message, Exception e, String fileName, int lineNo, String columnName, int columnIndex)
          コンストラクタ。
 
メソッドの概要
 int getColumnIndex()
          エラーが発生したカラムのカラム番号を取得する。
 String getColumnName()
          カラム名を取得する。
 int getLineNo()
          エラーが発生した行の行番号を取得する。
 
クラス jp.terasoluna.fw.file.dao.FileException から継承されたメソッド
getFileName
 
クラス java.lang.Throwable から継承されたメソッド
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

FileLineException

public FileLineException(Exception e)
コンストラクタ。

パラメータ:
e - 原因例外

FileLineException

public FileLineException(String message)
コンストラクタ。

パラメータ:
message - メッセージ

FileLineException

public FileLineException(String message,
                         Exception e)
コンストラクタ。

パラメータ:
message - メッセージ
e - 原因例外

FileLineException

public FileLineException(Exception e,
                         String fileName,
                         int lineNo)
コンストラクタ。

パラメータ:
e - 原因例外
fileName - ファイル名
lineNo - エラーが発生したデータのデータ部内行番号

FileLineException

public FileLineException(String message,
                         Exception e,
                         String fileName,
                         int lineNo)
コンストラクタ。

パラメータ:
message - メッセージ
e - 原因例外
fileName - ファイル名
lineNo - エラーが発生したデータのデータ部内行番号

FileLineException

public FileLineException(Exception e,
                         String fileName,
                         int lineNo,
                         String columnName,
                         int columnIndex)
コンストラクタ。

パラメータ:
e - 原因例外
fileName - ファイル名
lineNo - エラーが発生したデータのデータ部内行番号
columnName - カラム名
columnIndex - エラーが発生したカラム番号

FileLineException

public FileLineException(String message,
                         Exception e,
                         String fileName,
                         int lineNo,
                         String columnName,
                         int columnIndex)
コンストラクタ。

パラメータ:
message - メッセージ
e - 原因例外
fileName - ファイル名
lineNo - エラーが発生したデータのデータ部内行番号
columnName - カラム名
columnIndex - エラーが発生したカラム番号
メソッドの詳細

getColumnName

public String getColumnName()
カラム名を取得する。

戻り値:
カラム名

getLineNo

public int getLineNo()
エラーが発生した行の行番号を取得する。

戻り値:
エラーが発生した行の行番号

getColumnIndex

public int getColumnIndex()
エラーが発生したカラムのカラム番号を取得する。

戻り値:
エラーが発生したカラムのカラム番号(0から開始)


Copyright © 2011. All Rights Reserved.