Package com.luciad.format.asdi
Class TLcdASDIParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.luciad.format.asdi.TLcdASDIParseException
- All Implemented Interfaces:
Serializable
Exception indicating that an error occurred while parsing an ASDI message.
It is an extension of
Exception
that has extra methods to
retrieve the string that caused the parse error, see getParseString()
,
getFromIndex()
, getToIndex()
.- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdASDIParseException
(String aMessage, String aParseString, int aFrom, int aTo) Constructs a newTLcdASDIParseException
.TLcdASDIParseException
(String aMessage, String aParseString, int aFrom, int aTo, Throwable aCause) Constructs a newTLcdASDIParseException
that is triggered by anotherThrowable
. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Returns theThrowable
that triggered this exception.int
Returns the index of the string indicating the start position of the parse.Returns the string that caused the parse error.int
Returns the index of the string indicating the end position of the parse.Sets theThrowable
that triggered this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TLcdASDIParseException
Constructs a newTLcdASDIParseException
.- Parameters:
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.
-
TLcdASDIParseException
public TLcdASDIParseException(String aMessage, String aParseString, int aFrom, int aTo, Throwable aCause) Constructs a newTLcdASDIParseException
that is triggered by anotherThrowable
.- Parameters:
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
- theThrowable
that triggered this exception.
-
-
Method Details
-
initCause
Sets theThrowable
that triggered this exception. -
getParseString
Returns the string that caused the parse error.- Returns:
- the string that caused the parse error.
-
getFromIndex
public int getFromIndex()Returns the index of the string indicating the start position of the parse.- Returns:
- the index of the string indicating the start position of the parse.
-
getToIndex
public int getToIndex()Returns the index of the string indicating the end position of the parse.- Returns:
- the index of the string indicating the start position of the parse.
-
getCause
Returns theThrowable
that triggered this exception.
-