public class TLcdASDIParseException
extends java.lang.Exception
Exception
that has extra methods to
retrieve the string that caused the parse error, see getParseString()
,
getFromIndex()
, getToIndex()
.Constructor and Description |
---|
TLcdASDIParseException(java.lang.String aMessage,
java.lang.String aParseString,
int aFrom,
int aTo)
Constructs a new
TLcdASDIParseException . |
TLcdASDIParseException(java.lang.String aMessage,
java.lang.String aParseString,
int aFrom,
int aTo,
java.lang.Throwable aCause)
Constructs a new
TLcdASDIParseException
that is triggered by another Throwable . |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause()
Returns the
Throwable that triggered this exception. |
int |
getFromIndex()
Returns the index of the string indicating the start position of the parse.
|
java.lang.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.
|
java.lang.Throwable |
initCause(java.lang.Throwable aCause)
Sets the
Throwable that triggered this exception. |
public TLcdASDIParseException(java.lang.String aMessage, java.lang.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(java.lang.String aMessage, java.lang.String aParseString, int aFrom, int aTo, java.lang.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 java.lang.Throwable initCause(java.lang.Throwable aCause)
Throwable
that triggered this exception.initCause
in class java.lang.Throwable
aCause
- the Throwable
that triggered this exception.Throwable
instance.public java.lang.String getParseString()
public int getFromIndex()
public int getToIndex()
public java.lang.Throwable getCause()
Throwable
that triggered this exception.getCause
in class java.lang.Throwable
Throwable
that triggered this exception.