Package org.mvel2
Class CompileException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.mvel2.CompileException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PropertyAccessException
public class CompileException extends RuntimeException
Standard exception thrown for all general compileShared and some runtime failures.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompileException(String message, char[] expr, int cursor)CompileException(String message, char[] expr, int cursor, Throwable e)CompileException(String message, List<ErrorDetail> errors, char[] expr, int cursor, ParserContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharSequencegetCodeNearError()intgetColumn()intgetCursor()intgetCursorOffet()List<ErrorDetail>getErrors()char[]getExpr()intgetLastLineStart()intgetLineNumber()StringgetMessage()voidsetColumn(int column)voidsetCursor(int cursor)voidsetErrors(List<ErrorDetail> errors)voidsetEvaluationContext(Object evaluationContext)voidsetExpr(char[] expr)voidsetLastLineStart(int lastLineStart)voidsetLineNumber(int lineNumber)StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
CompileException
public CompileException(String message, List<ErrorDetail> errors, char[] expr, int cursor, ParserContext ctx)
-
CompileException
public CompileException(String message, char[] expr, int cursor)
-
-
Method Detail
-
setEvaluationContext
public void setEvaluationContext(Object evaluationContext)
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getCodeNearError
public CharSequence getCodeNearError()
-
getExpr
public char[] getExpr()
-
getCursor
public int getCursor()
-
getErrors
public List<ErrorDetail> getErrors()
-
setErrors
public void setErrors(List<ErrorDetail> errors)
-
getLineNumber
public int getLineNumber()
-
setLineNumber
public void setLineNumber(int lineNumber)
-
getColumn
public int getColumn()
-
setColumn
public void setColumn(int column)
-
getCursorOffet
public int getCursorOffet()
-
setExpr
public void setExpr(char[] expr)
-
setCursor
public void setCursor(int cursor)
-
getLastLineStart
public int getLastLineStart()
-
setLastLineStart
public void setLastLineStart(int lastLineStart)
-
-