org.drools.compiler
Class ParserError
java.lang.Object
org.drools.compiler.BaseKnowledgeBuilderResultImpl
org.drools.compiler.DroolsError
org.drools.compiler.ParserError
- All Implemented Interfaces:
- org.drools.builder.KnowledgeBuilderError, org.drools.builder.KnowledgeBuilderResult
public class ParserError
- extends DroolsError
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. |
String |
getNamespace()
Default implementation (overriden where possible and meaningful) returning just an empty string |
int |
getRow()
|
String |
toString()
|
ParserError
public ParserError(String message,
int row,
int col)
ParserError
public ParserError(org.drools.io.Resource resource,
String message,
int row,
int col)
ParserError
public ParserError(org.drools.io.Resource resource,
String message,
int row,
int col,
String namespace)
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
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:
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-2014 JBoss by Red Hat. All Rights Reserved.