public class ErrorInfo extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
Throwable |
cause
|
String |
errorCode
错误码
|
static Map<String,String> |
errorLocalMap
errCode 与 type 的映射
|
int |
errorTokenLine
|
String |
errorTokenText
|
String |
msg
|
List<Resource> |
resourceCallStack
|
List<GrammarToken> |
tokenCallStack
|
String |
type
错误类型
|
| 构造器和说明 |
|---|
ErrorInfo(BeetlException ex)
构造方法
|
| 限定符和类型 | 方法和说明 |
|---|---|
Throwable |
getCause() |
String |
getErrorCode() |
int |
getErrorTokenLine() |
String |
getErrorTokenText() |
String |
getMsg() |
List<Resource> |
getResourceCallStack() |
List<GrammarToken> |
getTokenCallStack() |
String |
getType() |
boolean |
hasCallStack()
调用栈的大小是否大于1
|
void |
setCause(Throwable cause) |
void |
setErrorCode(String errorCode) |
void |
setErrorTokenLine(int errorTokenLine) |
void |
setErrorTokenText(String errorTokenText) |
void |
setMsg(String msg) |
void |
setResourceCallStack(List<Resource> resourceCallStack) |
void |
setTokenCallStack(List<GrammarToken> tokenCallStack) |
void |
setType(String type) |
String |
toString() |
public String errorTokenText
public int errorTokenLine
public String msg
public Throwable cause
public List<GrammarToken> tokenCallStack
public String errorCode
public String type
public ErrorInfo(BeetlException ex)
ex - Beetl异常public boolean hasCallStack()
public String getErrorTokenText()
public void setErrorTokenText(String errorTokenText)
public int getErrorTokenLine()
public void setErrorTokenLine(int errorTokenLine)
public String getMsg()
public void setMsg(String msg)
public Throwable getCause()
public void setCause(Throwable cause)
public List<GrammarToken> getTokenCallStack()
public void setTokenCallStack(List<GrammarToken> tokenCallStack)
public String getErrorCode()
public void setErrorCode(String errorCode)
public String getType()
public void setType(String type)
Copyright © 2022. All rights reserved.