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 occured while parsing or processing a data file.

 

Constructor Summary
DataError(java.lang.String errorDesc, int lineNo, int errorLevel)
           
 
Method Summary
 java.lang.String getErrorDesc()
          Returns the errorDesc.
 int getErrorLevel()
          Returns the errorLevel.
 int getLineNo()
          Returns the lineNo.
 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 occured
lineNo - Line number in the data file the error occured on
errorLevel - Level of the error (1=warning, 2=moderate, 3=severe)
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