public class ParserError extends DroolsError
Constructor and Description |
---|
ParserError(org.kie.api.io.Resource resource,
String message,
int row,
int col) |
ParserError(org.kie.api.io.Resource resource,
String message,
int row,
int col,
String namespace) |
ParserError(String message,
int row,
int col) |
Modifier and Type | Method and Description |
---|---|
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() |
getSeverity
equals, getResource, hashCode, isError, setResource
public ParserError(String message, int row, int col)
public ParserError(org.kie.api.io.Resource resource, String message, int row, int col)
public String getMessage()
BaseKnowledgeBuilderResultImpl
getMessage
in interface org.kie.internal.builder.KnowledgeBuilderResult
getMessage
in class BaseKnowledgeBuilderResultImpl
public String getNamespace()
DroolsError
getNamespace
in class DroolsError
public int[] getLines()
BaseKnowledgeBuilderResultImpl
getLines
in interface org.kie.internal.builder.KnowledgeBuilderResult
getLines
in class BaseKnowledgeBuilderResultImpl
public int getCol()
public int getRow()
public String toString()
toString
in class BaseKnowledgeBuilderResultImpl
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.