Class ParseException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ParseException
    extends java.lang.RuntimeException
    Thrown to indicate an error during parsing
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int column
      The column where the ParserException occurred
      private int line
      The line where the ParserException occurred
      private java.lang.String sourceInfo
      The sourceInfo of where the exception occurred
    • Constructor Summary

      Constructors 
      Constructor Description
      ParseException​(java.lang.String message, int line, int column)
      Default constructor for the ParseException
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumn()  
      int getLine()  
      java.lang.String getMessage()  
      void setSourceInfo​(java.lang.String sourceInfo)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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
    • Field Detail

      • line

        private int line
        The line where the ParserException occurred
      • column

        private int column
        The column where the ParserException occurred
      • sourceInfo

        private java.lang.String sourceInfo
        The sourceInfo of where the exception occurred
    • Constructor Detail

      • ParseException

        public ParseException​(java.lang.String message,
                              int line,
                              int column)
        Default constructor for the ParseException
        Parameters:
        message - the message
        line - the line number
        column - the column number
    • Method Detail

      • getLine

        public int getLine()
      • getColumn

        public int getColumn()
      • setSourceInfo

        public void setSourceInfo​(java.lang.String sourceInfo)
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable