net.sf.flatpack
Class DataError

java.lang.Object
  extended by net.sf.flatpack.DataError

public class DataError
extends java.lang.Object

This class holds errors that occurred while parsing or processing a data file.

Version:
2.0
Author:
Paul Zepernick

Constructor Summary
DataError(java.lang.String errorDesc, int lineNo, int errorLevel)
           
DataError(java.lang.String errorDesc, int lineNo, int errorLevel, java.lang.String rawData)
           
 
Method Summary
 java.lang.String getErrorDesc()
          Returns the errorDesc.
 int getErrorLevel()
          Returns the errorLevel.
 int getLineNo()
          Returns the lineNo.
 java.lang.String getRawData()
          Option must be set on parser, otherwise this is null by default
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataError

public DataError(java.lang.String errorDesc,
                 int lineNo,
                 int errorLevel)
Parameters:
errorDesc - Text description of the error that occurred
lineNo - Line number in the data file the error occurred on
errorLevel - Level of the error (1=warning, 2=moderate, 3=severe)

DataError

public DataError(java.lang.String errorDesc,
                 int lineNo,
                 int errorLevel,
                 java.lang.String rawData)
Parameters:
errorDesc - Text description of the error that occurred
lineNo - Line number in the data file the error occurred on
errorLevel - Level of the error (1=warning, 2=moderate, 3=severe)
rawData - String of data which the parse failed on
Method Detail

getErrorDesc

public java.lang.String getErrorDesc()
Returns the errorDesc.

Returns:
String

getErrorLevel

public int getErrorLevel()
Returns the errorLevel.

Returns:
int

getLineNo

public int getLineNo()
Returns the lineNo.

Returns:
int

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getRawData

public java.lang.String getRawData()
Option must be set on parser, otherwise this is null by default

Returns:
the rawData


Copyright © 2006-2011 Appendium - Portfolio Financing Platform. All Rights Reserved.