net.sf.jmatchparser.util.csv.fieldreader
Class FieldReaderException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sf.jmatchparser.util.csv.fieldreader.FieldReaderException
All Implemented Interfaces:
Serializable

public class FieldReaderException
extends Exception

Thrown when a field has a value that cannot be parsed.

See Also:
Serialized Form

Nested Class Summary
static class FieldReaderException.FieldReaderExceptionInfo<K,V>
          Additional information about a field reader exception.
 
Constructor Summary
FieldReaderException(FieldReaderErrorCode errorCode, boolean rawField, FieldReaderException.FieldReaderExceptionInfo<?,?> exceptionInfo)
          Create a new field reader exception.
FieldReaderException(FieldReaderErrorCode errorCode, boolean rawField, FieldReaderException.FieldReaderExceptionInfo<?,?> exceptionInfo, Throwable cause)
          Create a new field reader exception.
 
Method Summary
 FieldReaderErrorCode getErrorCode()
          Return the error code of this exception.
 FieldReaderException.FieldReaderExceptionInfo<?,?> getExceptionInfo()
          Return the exception info of this exception.
 boolean isRawField()
          Return whether this exception occurred when the fields still were "raw" (i. e. not formatted).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldReaderException

public FieldReaderException(FieldReaderErrorCode errorCode,
                            boolean rawField,
                            FieldReaderException.FieldReaderExceptionInfo<?,?> exceptionInfo)
Create a new field reader exception.

Parameters:
errorCode - Error code
rawField - Whether the field is still raw (like in the CSV layout) or already formatted (in the layout the FieldReader creates)
exceptionInfo - Information about the field and its value

FieldReaderException

public FieldReaderException(FieldReaderErrorCode errorCode,
                            boolean rawField,
                            FieldReaderException.FieldReaderExceptionInfo<?,?> exceptionInfo,
                            Throwable cause)
Create a new field reader exception.

Parameters:
errorCode - Error code
rawField - Whether the field is still raw (like in the CSV layout) or already formatted (in the layout the FieldReader creates)
exceptionInfo - Information about the field and its value
Method Detail

getErrorCode

public FieldReaderErrorCode getErrorCode()
Return the error code of this exception.


isRawField

public boolean isRawField()
Return whether this exception occurred when the fields still were "raw" (i. e. not formatted).


getExceptionInfo

public FieldReaderException.FieldReaderExceptionInfo<?,?> getExceptionInfo()
Return the exception info of this exception.



Copyright © 2011. All Rights Reserved.