org.drools.compiler
Class ParserError

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

public class ParserError
extends DroolsError


Constructor Summary
ParserError(String message, int row, int col)
           
 
Method Summary
 int getCol()
           
 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.
 int getRow()
           
 String toString()
           
 
Methods inherited from class org.drools.compiler.DroolsError
getSeverity
 
Methods inherited from class org.drools.compiler.BaseKnowledgeBuilderResultImpl
isError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParserError

public ParserError(String message,
                   int row,
                   int col)
Method Detail

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

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

getCol

public int getCol()

getRow

public int getRow()

toString

public String toString()
Overrides:
toString in class BaseKnowledgeBuilderResultImpl


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