public class LogException extends Exception
| 构造器和说明 |
|---|
LogException(int httpCode,
String code,
String message,
String requestId)
Construct LogException
|
LogException(String code,
String message,
String requestId)
Construct LogException
|
LogException(String code,
String message,
Throwable cause,
String requestId)
Construct LogException
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
GetErrorCode()
Get the error code
|
String |
GetErrorMessage()
Get the error message
|
int |
GetHttpCode()
Get the http response code
|
String |
GetRequestId()
Get the request id
|
void |
SetHttpCode(int httpCode)
Set the http response code
|
public LogException(String code, String message, String requestId)
code - error codemessage - error messagerequestId - request id from sls server, if the error is happened in the
client, the request id is emptypublic LogException(String code, String message, Throwable cause, String requestId)
code - error codemessage - error messagecause - inner exception, which cause the errorrequestId - request id from sls server, if the error is happened in the
client, the request id is emptypublic LogException(int httpCode,
String code,
String message,
String requestId)
httpCode - http code, -1 the error is happened in the clientcode - error codemessage - error messagerequestId - request id from sls server, if the error is happened in the
client, the request id is emptypublic String GetErrorCode()
public String GetErrorMessage()
public String GetRequestId()
public int GetHttpCode()
public void SetHttpCode(int httpCode)
httpCode - http code, -1 the error is happened in the clientCopyright © 2020. All Rights Reserved.