Class TLcdASDIParseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.luciad.format.asdi.TLcdASDIParseException
All Implemented Interfaces:
Serializable

public class TLcdASDIParseException extends Exception
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 Details

    • TLcdASDIParseException

      public TLcdASDIParseException(String aMessage, String aParseString, int aFrom, int aTo)
      Constructs a new TLcdASDIParseException.
      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 new TLcdASDIParseException that is triggered by another Throwable.
      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 - the Throwable that triggered this exception.
  • Method Details

    • initCause

      public Throwable initCause(Throwable aCause)
      Sets the Throwable that triggered this exception.
      Overrides:
      initCause in class Throwable
      Parameters:
      aCause - the Throwable that triggered this exception.
      Returns:
      a reference to this Throwable instance.
    • getParseString

      public String 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

      public Throwable getCause()
      Returns the Throwable that triggered this exception.
      Overrides:
      getCause in class Throwable
      Returns:
      the Throwable that triggered this exception.