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, getSeverityasMessage, equals, getResource, hashCode, isError, setResource, toStringpublic 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()
BaseKnowledgeBuilderResultImplgetLines in interface org.kie.internal.builder.KnowledgeBuilderResultgetLines in class BaseKnowledgeBuilderResultImplpublic int getOffset()
public int getTemplate()
public String getTemplateText()
public String getMessage()
BaseKnowledgeBuilderResultImplgetMessage in interface org.kie.internal.builder.KnowledgeBuilderResultgetMessage in class BaseKnowledgeBuilderResultImplorg.kie.compiler.DroolsError#getMessage()Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.