public class Error extends Object implements Serializable
标准错误对象包含:
标准错误对象是一次错误处理结果的描述。
Constructor and Description |
---|
Error()
默认构造方法
|
Error(AbstractErrorCode code,
String msg,
String location)
构造方法
|
Modifier and Type | Method and Description |
---|---|
ErrorCode |
getErrorCode()
Getter method for property errorCode.
|
String |
getErrorMsg()
Getter method for property errorMsg.
|
String |
getErrorSource()
Getter method for property errorSource.
|
void |
setErrorCode(ErrorCode errorCode)
Setter method for property errorCode.
|
void |
setErrorMsg(String errorMsg)
Setter method for property errorMsg.
|
void |
setErrorSource(String errorSource)
Setter method for property errorSource.
|
String |
toDigest()
转化为简单字符串表示。
|
String |
toString() |
public Error()
public Error(AbstractErrorCode code, String msg, String location)
code
- msg
- public String toDigest()
public String toString()
toString
in class Object
Object.toString()
public ErrorCode getErrorCode()
public void setErrorCode(ErrorCode errorCode)
errorCode
- value to be assigned to property errorCodepublic String getErrorMsg()
public void setErrorMsg(String errorMsg)
errorMsg
- value to be assigned to property errorMsgpublic String getErrorSource()
public void setErrorSource(String errorSource)
errorSource
- value to be assigned to property errorSourceCopyright © 2006–2018 TinyGroup. All rights reserved.