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
ConstructorsConstructorDescriptionTLcdASDIParseException(String aMessage, String aParseString, int aFrom, int aTo) Constructs a newTLcdASDIParseException.TLcdASDIParseException(String aMessage, String aParseString, int aFrom, int aTo, Throwable aCause) Constructs a newTLcdASDIParseExceptionthat is triggered by anotherThrowable. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Returns theThrowablethat triggered this exception.intReturns the index of the string indicating the start position of the parse.Returns the string that caused the parse error.intReturns the index of the string indicating the end position of the parse.Sets theThrowablethat 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 newTLcdASDIParseExceptionthat 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- theThrowablethat triggered this exception.
-
-
Method Details
-
initCause
Sets theThrowablethat 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 theThrowablethat triggered this exception.
-