public class ErrorContext extends Object implements Serializable
错误上下文对象包含标准错误对象的堆栈,和第三方错误信息。
Constructor and Description |
---|
ErrorContext()
默认构造方法
|
Modifier and Type | Method and Description |
---|---|
void |
addError(Error error)
向堆栈中添加错误对象。
|
Error |
fetchCurrentError()
获取当前错误对象
|
String |
fetchCurrentErrorCode()
获取当前错误码
|
Error |
fetchRootError()
获取原始错误对象
|
List<Error> |
getErrorStack()
Getter method for property errorStack.
|
String |
getThirdPartyError()
Getter method for property thirdPartyError.
|
void |
setErrorStack(List<Error> errorStack)
Setter method for property errorStack.
|
void |
setThirdPartyError(String thirdPartyError)
Setter method for property thirdPartyError.
|
String |
toDigest()
转化为简单字符串表示。
|
String |
toString() |
public Error fetchCurrentError()
public String fetchCurrentErrorCode()
public Error fetchRootError()
public void addError(Error error)
error
- public String toDigest()
public String toString()
toString
in class Object
Object.toString()
public List<Error> getErrorStack()
public void setErrorStack(List<Error> errorStack)
errorStack
- value to be assigned to property errorStackpublic String getThirdPartyError()
public void setThirdPartyError(String thirdPartyError)
thirdPartyError
- value to be assigned to property thirdPartyErrorCopyright © 2006–2018 TinyGroup. All rights reserved.