Package org.drools.compiler.lang
Class ParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.drools.compiler.lang.ParseException
-
- All Implemented Interfaces:
Serializable
public class ParseException extends RuntimeException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParseException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getCause()
int
getLineNumber()
The line number on which the error occurred.String
getMessage()
This will print out a summary, including the line number.String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
ParseException
public ParseException(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.
-
-
Method Detail
-
getLineNumber
public int getLineNumber()
The line number on which the error occurred.
-
getMessage
public 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 classThrowable
-
-