org.drools.compiler
Class FieldTemplateError

java.lang.Object
  extended by org.drools.compiler.DroolsError
      extended by org.drools.compiler.FieldTemplateError
All Implemented Interfaces:
org.drools.builder.KnowledgeBuilderError

public class FieldTemplateError
extends DroolsError


Constructor Summary
FieldTemplateError(Package pkg, BaseDescr descr, Object object, String message)
           
 
Method Summary
 BaseDescr getDescr()
           
 int[] getErrorLines()
          Returns the lines of the error in the source file
 int getLine()
          This will return the line number of the error, if possible Otherwise it will be -1
 String getMessage()
          Classes that extend this must provide a printable message, which summarises the error.
 Object getObject()
           
 Package getPackage()
           
 
Methods inherited from class org.drools.compiler.DroolsError
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldTemplateError

public FieldTemplateError(Package pkg,
                          BaseDescr descr,
                          Object object,
                          String message)
Method Detail

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.