public class TLcdASDIParseException extends Exception
Exception
that has extra methods to
retrieve the string that caused the parse error, see getParseString()
,
getFromIndex()
, getToIndex()
.Constructor and Description |
---|
TLcdASDIParseException(String aMessage,
String aParseString,
int aFrom,
int aTo)
Constructs a new
TLcdASDIParseException . |
TLcdASDIParseException(String aMessage,
String aParseString,
int aFrom,
int aTo,
Throwable aCause)
Constructs a new
TLcdASDIParseException
that is triggered by another Throwable . |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Returns the
Throwable that triggered this exception. |
int |
getFromIndex()
Returns the index of the string indicating the start position of the parse.
|
String |
getParseString()
Returns the string that caused the parse error.
|
int |
getToIndex()
Returns the index of the string indicating the end position of the parse.
|
Throwable |
initCause(Throwable aCause)
Sets the
Throwable that triggered this exception. |
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TLcdASDIParseException(String aMessage, String aParseString, int aFrom, int aTo)
TLcdASDIParseException
.aMessage
- a description of the parse error.aParseString
- the string that caused the parse error.aFrom
- the index of the string indicating the start position of the parse.aTo
- the index of the string indicating the end position of the parse.public TLcdASDIParseException(String aMessage, String aParseString, int aFrom, int aTo, Throwable aCause)
TLcdASDIParseException
that is triggered by another Throwable
.aMessage
- a description of the parse error.aParseString
- the string that caused the parse error.aFrom
- the index of the string indicating the start position of the parse.aTo
- the index of the string indicating the end position of the parse.aCause
- the Throwable
that triggered this exception.public Throwable initCause(Throwable aCause)
Throwable
that triggered this exception.public String getParseString()
public int getFromIndex()
public int getToIndex()