flattree
Class TreeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by flattree.TreeException
All Implemented Interfaces:
Position, Serializable

public class TreeException
extends RuntimeException
implements Position

Exception thrown by FlatTree.

See Also:
Serialized Form

Constructor Summary
TreeException(String message, int index, int rowIndex, int columnIndex)
           
TreeException(String message, Position position)
           
TreeException(Throwable cause, int index, int rowIndex, int columnIndex)
           
TreeException(Throwable cause, Position position)
           
 
Method Summary
 int getColumnIndex()
          Get the current column index.
 int getIndex()
          Get the index of the current character.
 String getMessage()
           
 int getRowIndex()
          Get the current row index.
 String getShortMessage()
           
 
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

TreeException

public TreeException(String message,
                     Position position)

TreeException

public TreeException(Throwable cause,
                     Position position)

TreeException

public TreeException(String message,
                     int index,
                     int rowIndex,
                     int columnIndex)

TreeException

public TreeException(Throwable cause,
                     int index,
                     int rowIndex,
                     int columnIndex)
Method Detail

getIndex

public int getIndex()
Description copied from interface: Position
Get the index of the current character.

Specified by:
getIndex in interface Position
Returns:
index

getRowIndex

public int getRowIndex()
Description copied from interface: Position
Get the current row index.

Specified by:
getRowIndex in interface Position
Returns:
row index

getColumnIndex

public int getColumnIndex()
Description copied from interface: Position
Get the current column index.

Specified by:
getColumnIndex in interface Position
Returns:
column index

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getShortMessage

public String getShortMessage()


Copyright © 2011. All Rights Reserved.