public class ControlStringParseException extends 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 FormConstructor and Description |
---|
ControlStringParseException(String descrip)
Constructor with only a description.
|
ControlStringParseException(String descrip,
int index)
Constructor with a description and index value.
|
ControlStringParseException(String descrip,
int fromIndex,
int toIndex)
Constructor with a description and index range.
|
ControlStringParseException(String descrip,
int fromIndex,
int toIndex,
ExpressionParseException epe)
Constructor with a description, index range and ExpressionParseException.
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
toString()
Returns a nicely formatted string of this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public ControlStringParseException(String descrip)
public ControlStringParseException(String descrip, int index)
public ControlStringParseException(String descrip, int fromIndex, int toIndex)
public ControlStringParseException(String descrip, int fromIndex, int toIndex, ExpressionParseException epe)
public int getFromIndex()
public int getToIndex()
public String getDescription()
public ExpressionParseException getExpressionParseException()
Copyright © 2016. All rights reserved.