com.graphbuilder.curve
Class ControlStringParseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.graphbuilder.curve.ControlStringParseException
All Implemented Interfaces:
java.io.Serializable

public class ControlStringParseException
extends java.lang.RuntimeException

Exception thrown if the parsing of a control-string fails. A ControlStringParseException contains a description, and may contain any of the following information:

Otherwise the index values will be -1 if they are unassigned and the ExpressionParseException will be null.

See Also:
GroupIterator, Serialized Form

Constructor Summary
ControlStringParseException(java.lang.String descrip)
          Constructor with only a description.
ControlStringParseException(java.lang.String descrip, int index)
          Constructor with a description and index value.
ControlStringParseException(java.lang.String descrip, int fromIndex, int toIndex)
          Constructor with a description and index range.
ControlStringParseException(java.lang.String descrip, int fromIndex, int toIndex, ExpressionParseException epe)
          Constructor with a description, index range and ExpressionParseException.
 
Method Summary
 java.lang.String getDescription()
          Returns the description of the problem.
 ExpressionParseException getExpressionParseException()
          Returns an ExpressionParseException if an expression in the control-string could not be parsed correctly or null if this was not the problem.
 int getFromIndex()
          Returns the index location in the control-string that marks the start of the problem or -1 if not available.
 int getToIndex()
          Returns the index location in the control-string that marks the end of the problem or -1 if not available.
 java.lang.String toString()
          Returns a nicely formatted string of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControlStringParseException

public ControlStringParseException(java.lang.String descrip)
Constructor with only a description.


ControlStringParseException

public ControlStringParseException(java.lang.String descrip,
                                   int index)
Constructor with a description and index value. The index value is assigned to both the fromIndex and the toIndex.


ControlStringParseException

public ControlStringParseException(java.lang.String descrip,
                                   int fromIndex,
                                   int toIndex)
Constructor with a description and index range.


ControlStringParseException

public ControlStringParseException(java.lang.String descrip,
                                   int fromIndex,
                                   int toIndex,
                                   ExpressionParseException epe)
Constructor with a description, index range and ExpressionParseException.

Method Detail

getFromIndex

public int getFromIndex()
Returns the index location in the control-string that marks the start of the problem or -1 if not available.


getToIndex

public int getToIndex()
Returns the index location in the control-string that marks the end of the problem or -1 if not available.


getDescription

public java.lang.String getDescription()
Returns the description of the problem.


getExpressionParseException

public ExpressionParseException getExpressionParseException()
Returns an ExpressionParseException if an expression in the control-string could not be parsed correctly or null if this was not the problem.


toString

public java.lang.String toString()
Returns a nicely formatted string of this exception.