org.jplate.tabular.parser
Class FieldCountMismatchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jplate.JPlateException
              extended by org.jplate.foundation.FoundationException
                  extended by org.jplate.foundation.gof.GOFException
                      extended by org.jplate.foundation.gof.builder.BuildException
                          extended by org.jplate.foundation.parser.JPlateBuildingException
                              extended by org.jplate.tabular.parser.FieldCountMismatchException
All Implemented Interfaces:
java.io.Serializable

public class FieldCountMismatchException
extends JPlateBuildingException

Thrown when the field count is greater than the maximum number of fields.

Modifications:
    $Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
    $Revision: 479 $
    $Author: sfloess $
    $HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/tabular/parser/FieldCountMismatchException.java $
    

See Also:
Serialized Form

Field Summary
private  int _fieldNumber
           
private  int _maxFields
           
 
Constructor Summary
FieldCountMismatchException()
          Default constructor.
FieldCountMismatchException(int maxFields, int fieldNumber)
           
FieldCountMismatchException(java.lang.String msg)
          This constructor sets the message.
FieldCountMismatchException(java.lang.String msg, int maxFields, int fieldNumber)
           
FieldCountMismatchException(java.lang.String msg, java.lang.Throwable rootCause)
          This constructor sets the message and root cause.
FieldCountMismatchException(java.lang.String msg, java.lang.Throwable rootCause, int maxFields, int fieldNumber)
           
FieldCountMismatchException(java.lang.Throwable rootCause)
          This constructor sets the root cause and the node that caused self to be raised.
FieldCountMismatchException(java.lang.Throwable rootCause, int maxFields, int fieldNumber)
           
 
Method Summary
private static java.lang.String computeMsg(int maxFields, int fieldNumber)
           
 int getFieldNumber()
          Returns the current field number when self was raised.
 int getMaxFields()
          Returns the maximum number of fields when self was raised.
 
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
 

Field Detail

_maxFields

private int _maxFields

_fieldNumber

private int _fieldNumber
Constructor Detail

FieldCountMismatchException

public FieldCountMismatchException()
Default constructor.


FieldCountMismatchException

public FieldCountMismatchException(int maxFields,
                                   int fieldNumber)

FieldCountMismatchException

public FieldCountMismatchException(java.lang.String msg,
                                   int maxFields,
                                   int fieldNumber)

FieldCountMismatchException

public FieldCountMismatchException(java.lang.String msg)
This constructor sets the message.

Parameters:
msg - represents a message about why self was raised.

FieldCountMismatchException

public FieldCountMismatchException(java.lang.Throwable rootCause,
                                   int maxFields,
                                   int fieldNumber)

FieldCountMismatchException

public FieldCountMismatchException(java.lang.Throwable rootCause)
This constructor sets the root cause and the node that caused self to be raised.

Parameters:
rootCause - represents the exception that caused self to be raised.

FieldCountMismatchException

public FieldCountMismatchException(java.lang.String msg,
                                   java.lang.Throwable rootCause,
                                   int maxFields,
                                   int fieldNumber)

FieldCountMismatchException

public FieldCountMismatchException(java.lang.String msg,
                                   java.lang.Throwable rootCause)
This constructor sets the message and root cause.

Parameters:
msg - represents a message about why self was raised.
rootCause - represents the exception that caused self to be raised.
Method Detail

computeMsg

private static java.lang.String computeMsg(int maxFields,
                                           int fieldNumber)

getMaxFields

public int getMaxFields()
Returns the maximum number of fields when self was raised.

Returns:
the maximum number of fields.

getFieldNumber

public int getFieldNumber()
Returns the current field number when self was raised.

Returns:
the urrent field number.