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.
GroupIterator,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
descrip |
private ExpressionParseException |
epe |
private int |
fromIndex |
private int |
toIndex |
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
private java.lang.String descrip
private int fromIndex
private int toIndex
private ExpressionParseException epe
public ControlStringParseException(java.lang.String descrip)
public ControlStringParseException(java.lang.String descrip,
int index)
public ControlStringParseException(java.lang.String descrip,
int fromIndex,
int toIndex)
public ControlStringParseException(java.lang.String descrip,
int fromIndex,
int toIndex,
ExpressionParseException epe)
public int getFromIndex()
public int getToIndex()
public java.lang.String getDescription()
public ExpressionParseException getExpressionParseException()
public java.lang.String toString()
toString in class java.lang.Throwable