org.drools.compiler
Class FunctionError

java.lang.Object
  extended by org.drools.compiler.BaseKnowledgeBuilderResultImpl
      extended by org.drools.compiler.DroolsError
          extended by org.drools.compiler.FunctionError
All Implemented Interfaces:
org.drools.builder.KnowledgeBuilderError, org.drools.builder.KnowledgeBuilderResult

public class FunctionError
extends DroolsError


Constructor Summary
FunctionError(FunctionDescr functionDescr, Object object, String message)
           
 
Method Summary
 FunctionDescr getFunctionDescr()
           
 int[] getLines()
          Returns the lines of the error in the source file
 String getMessage()
          Classes that extend this must provide a printable message, which summarises the error.
 String getNamespace()
          Default implementation (overriden where possible and meaningful) returning just an empty string
 Object getObject()
           
 String toString()
           
 
Methods inherited from class org.drools.compiler.DroolsError
getSeverity
 
Methods inherited from class org.drools.compiler.BaseKnowledgeBuilderResultImpl
getResource, isError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.builder.KnowledgeBuilderResult
getResource
 

Constructor Detail

FunctionError

public FunctionError(FunctionDescr functionDescr,
                     Object object,
                     String message)
Method Detail

getNamespace

public String getNamespace()
Description copied from class: DroolsError
Default implementation (overriden where possible and meaningful) returning just an empty string

Overrides:
getNamespace in class DroolsError
Returns:

getFunctionDescr

public FunctionDescr getFunctionDescr()

getObject

public Object getObject()

getLines

public int[] getLines()
Description copied from class: BaseKnowledgeBuilderResultImpl
Returns the lines of the error in the source file

Specified by:
getLines in interface org.drools.builder.KnowledgeBuilderResult
Specified by:
getLines in class BaseKnowledgeBuilderResultImpl

getMessage

public String getMessage()
Description copied from class: BaseKnowledgeBuilderResultImpl
Classes that extend this must provide a printable message, which summarises the error.

Specified by:
getMessage in interface org.drools.builder.KnowledgeBuilderResult
Specified by:
getMessage in class BaseKnowledgeBuilderResultImpl

toString

public String toString()
Overrides:
toString in class BaseKnowledgeBuilderResultImpl


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.