org.drools.compiler
Class FactTemplateError
java.lang.Object
org.drools.compiler.DroolsError
org.drools.compiler.FactTemplateError
- All Implemented Interfaces:
- org.drools.builder.KnowledgeBuilderError
public class FactTemplateError
- extends DroolsError
FactTemplateError
public FactTemplateError(Package pkg,
BaseDescr descr,
Object object,
String message)
getPackage
public Package getPackage()
getDescr
public BaseDescr getDescr()
getObject
public Object getObject()
getErrorLines
public int[] getErrorLines()
- Description copied from class:
DroolsError
- Returns the lines of the error in the source file
- Specified by:
getErrorLines
in interface org.drools.builder.KnowledgeBuilderError
- Specified by:
getErrorLines
in class DroolsError
getLine
public int getLine()
- This will return the line number of the error, if possible
Otherwise it will be -1
getMessage
public String getMessage()
- Description copied from class:
DroolsError
- Classes that extend this must provide a printable message,
which summarises the error.
- Specified by:
getMessage
in interface org.drools.builder.KnowledgeBuilderError
- Specified by:
getMessage
in class DroolsError
Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.