org.eobjects.metamodel
Class InconsistentRowFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.eobjects.metamodel.MetaModelException
                  extended by org.eobjects.metamodel.InconsistentRowFormatException
All Implemented Interfaces:
Serializable

public abstract class InconsistentRowFormatException
extends MetaModelException

Abstract exception type that represents exceptions that occur when reading a data format which contain formatting errors or inconsistencies in on or more rows. Typically InconsistentRowFormatExceptions are thrown when calling DataSet.next(). All InconsistentRowFormatExceptions are optional, meaning that you can turn them on and off. When turned off the result of getProposedRow() will be used transparently instead of throwing the exception.

Author:
Kasper Sørensen
See Also:
Serialized Form

Constructor Summary
InconsistentRowFormatException(Row proposedRow, int rowNumber)
           
InconsistentRowFormatException(Row proposedRow, int rowNumber, Exception cause)
           
 
Method Summary
 String getMessage()
           
 Row getProposedRow()
          Gets the row as MetaModel would gracefully interpret it.
 int getRowNumber()
          Gets the row number (1-based).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

InconsistentRowFormatException

public InconsistentRowFormatException(Row proposedRow,
                                      int rowNumber)

InconsistentRowFormatException

public InconsistentRowFormatException(Row proposedRow,
                                      int rowNumber,
                                      Exception cause)
Method Detail

getProposedRow

public Row getProposedRow()
Gets the row as MetaModel would gracefully interpret it.

Returns:
a row object which represents the Row as MetaModel would gracefully interpret it.

getRowNumber

public int getRowNumber()
Gets the row number (1-based).

Returns:
the index of the row.

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2007-2013. All Rights Reserved.