public class MappingError extends DroolsError
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_INVALID_TOKEN |
static int |
ERROR_UNDECLARED_TOKEN |
static int |
ERROR_UNMATCHED_BRACES |
static int |
ERROR_UNUSED_TOKEN |
static int |
TEMPLATE_NATURAL |
static int |
TEMPLATE_TARGET |
static int |
TEMPLATE_UNKNOWN |
Constructor and Description |
---|
MappingError(int errorCode,
int template,
int offset,
String token,
String templateText,
int line) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Returns this error code
|
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 |
getOffset() |
int |
getTemplate() |
String |
getTemplateText() |
getNamespace, getSeverity
equals, getResource, hashCode, isError, setResource, toString
public static final int TEMPLATE_UNKNOWN
public static final int TEMPLATE_NATURAL
public static final int TEMPLATE_TARGET
public static final int ERROR_UNUSED_TOKEN
public static final int ERROR_UNDECLARED_TOKEN
public static final int ERROR_INVALID_TOKEN
public static final int ERROR_UNMATCHED_BRACES
public int getErrorCode()
public int[] getLines()
BaseKnowledgeBuilderResultImpl
getLines
in interface org.kie.internal.builder.KnowledgeBuilderResult
getLines
in class BaseKnowledgeBuilderResultImpl
public int getOffset()
public int getTemplate()
public String getTemplateText()
public String getMessage()
BaseKnowledgeBuilderResultImpl
getMessage
in interface org.kie.internal.builder.KnowledgeBuilderResult
getMessage
in class BaseKnowledgeBuilderResultImpl
org.kie.compiler.DroolsError#getMessage()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.