com.spss.psapi.expr

Class ParserException

  • All Implemented Interfaces:
    java.io.Serializable


    public class ParserException
    extends PredictiveServerException
    A ParserException is thrown to indicate that an attempt to parse a String to an Expression failed. Parsing can fail due to syntax, lexical or semantic errors.
    Since:
    PSAPI 17.0
    Author:
    Mark Anderson
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      ParserException(java.lang.String message, int startPosition, int endPosition)
      Creates a ParserException.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getEndPosition()
      Returns the end position in the parsed String of the text relating to the error.
      int getStartPosition()
      Returns the start position in the parsed String of the text relating to the error.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ParserException

        public ParserException(java.lang.String message,
                       int startPosition,
                       int endPosition)
        Creates a ParserException.
        Parameters:
        message - - the error message
        startPosition - - the start position of the error in the parsed String
        endPosition - - the end position of the error in the parsed String
    • Method Detail

      • getStartPosition

        public int getStartPosition()
        Returns the start position in the parsed String of the text relating to the error. Returns -1 if start position is not valid.
        Returns:
        the start position in the parsed String of the text relating to the error.
      • getEndPosition

        public int getEndPosition()
        Returns the end position in the parsed String of the text relating to the error. Returns -1 if start position is not valid.
        Returns:
        the end position in the parsed String of the text relating to the error.

(C) Copyright IBM Corp. 1994, 2015. All Rights Reserved.