Class ParseException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ParseException
    extends java.lang.RuntimeException
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ParseException​(java.lang.String message, int lineNumber)
      Thrown if there is an exception related to parsing a line in a drl file.
      ParseException​(java.lang.String message, int lineNumber, java.lang.Throwable cause)
      Allows nesting of misc exceptions, yet preserving the line number that triggered the error.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getCause()  
      int getLineNumber()
      The line number on which the error occurred.
      java.lang.String getMessage()
      This will print out a summary, including the line number.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

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

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

      • ParseException

        public ParseException​(java.lang.String message,
                              int lineNumber)
        Thrown if there is an exception related to parsing a line in a drl file. For more generic exception, a different exception class will be used.
      • ParseException

        public ParseException​(java.lang.String message,
                              int lineNumber,
                              java.lang.Throwable cause)
        Allows nesting of misc exceptions, yet preserving the line number that triggered the error.
    • Method Detail

      • getLineNumber

        public int getLineNumber()
        The line number on which the error occurred.
      • getMessage

        public java.lang.String getMessage()
        This will print out a summary, including the line number. It will also print out the cause message if applicable.
        Overrides:
        getMessage in class java.lang.Throwable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable
      • getCause

        public java.lang.Throwable getCause()
        Overrides:
        getCause in class java.lang.Throwable