net.sourceforge.jdbcimporter
Class MalformedDataException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynet.sourceforge.jdbcimporter.MalformedDataException
All Implemented Interfaces:
java.io.Serializable

public class MalformedDataException
extends java.lang.Exception

The MalformedDataException exception indicates that one or more column values for the given row is cannot be imported.

Version:
0.6
Author:
Chris Nagy
See Also:
Serialized Form

Constructor Summary
MalformedDataException(java.lang.String msg)
          Constructs a MalformedDataException with no column identified.
MalformedDataException(java.lang.String msg, java.lang.Exception e)
          Constructs a MalformedDataException with no column indicated.
MalformedDataException(java.lang.String msg, int newColumn)
          Constructs a MalformedDataException for the given column index.
MalformedDataException(java.lang.String msg, int newColumn, java.lang.Exception e)
          Constructs a MalformedDataException for the given column index and a wrapped exception.
MalformedDataException(java.lang.String msg, java.lang.String row, java.lang.Exception e)
          Constructs a MalformedDataException for the given column index and a wrapped exception.
 
Method Summary
 int getColumn()
          Returns the index of the column that caused the exception.
 java.lang.String getRow()
          Returns the row that caused the exception.
 void printStackTrace()
          Overrides printStackTrace().
 void printStackTrace(java.io.PrintStream stream)
          Overrides printStackTrace(PrintStream).
 void setRow(java.lang.String row)
          Sets the row that caused the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MalformedDataException

public MalformedDataException(java.lang.String msg)
Constructs a MalformedDataException with no column identified.

Parameters:
msg - the exception message

MalformedDataException

public MalformedDataException(java.lang.String msg,
                              int newColumn)
Constructs a MalformedDataException for the given column index.

Parameters:
msg - the exception message
newColumn - the column index

MalformedDataException

public MalformedDataException(java.lang.String msg,
                              java.lang.Exception e)
Constructs a MalformedDataException with no column indicated.

Parameters:
msg - the exception message
e - the wrapped exception

MalformedDataException

public MalformedDataException(java.lang.String msg,
                              int newColumn,
                              java.lang.Exception e)
Constructs a MalformedDataException for the given column index and a wrapped exception.

Parameters:
msg - the exception message
newColumn - the column index
e - the wrapped exception

MalformedDataException

public MalformedDataException(java.lang.String msg,
                              java.lang.String row,
                              java.lang.Exception e)
Constructs a MalformedDataException for the given column index and a wrapped exception.

Parameters:
msg - the exception message
row - the row
e - the wrapped exception
Method Detail

printStackTrace

public void printStackTrace()
Overrides printStackTrace().


printStackTrace

public void printStackTrace(java.io.PrintStream stream)
Overrides printStackTrace(PrintStream).


getColumn

public int getColumn()
Returns the index of the column that caused the exception.

Returns:
column index

getRow

public java.lang.String getRow()
Returns the row that caused the exception.

Returns:
row

setRow

public void setRow(java.lang.String row)
Sets the row that caused the exception. This value can only be set once.

Parameters:
row - the string representation of the row