Package org.drools.drl.parser.lang
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.drools.drl.parser.lang.ParseException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParseException(String message, int lineNumber) Thrown if there is an exception related to parsing a line in a drl file.ParseException(String message, int lineNumber, Throwable cause) Allows nesting of misc exceptions, yet preserving the line number that triggered the error. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ParseException
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
Allows nesting of misc exceptions, yet preserving the line number that triggered the error.
-
-
Method Details
-
getLineNumber
public int getLineNumber()The line number on which the error occurred. -
getMessage
This will print out a summary, including the line number. It will also print out the cause message if applicable.- Overrides:
getMessagein classThrowable
-
toString
-
getCause
-