public class LogException extends Exception
| 构造器和说明 |
|---|
LogException(int httpCode,
String code,
String message,
String requestId)
Construct LogException
|
LogException(int httpCode,
String code,
String message,
String requestId,
String rawResponseError)
Construct LogException
|
LogException(String code,
String message,
String requestId)
Construct LogException
|
LogException(String code,
String message,
Throwable cause,
String requestId)
Construct LogException
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getErrorCode() |
String |
GetErrorCode()
Get the error code
|
String |
GetErrorMessage()
Get the error message
|
int |
getHttpCode() |
int |
GetHttpCode()
Get the http response code
|
String |
getRawResponseError() |
String |
getRequestId() |
String |
GetRequestId()
Get the request id
|
void |
setErrorCode(String errorCode) |
void |
setHttpCode(int httpCode) |
void |
SetHttpCode(int httpCode)
已过时。
Use setHttpCode(int httpCode) instead.
|
void |
setRawResponseError(String rawResponseError) |
void |
setRequestId(String requestId) |
String |
toString() |
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 LogException(int httpCode,
String code,
String message,
String requestId,
String rawResponseError)
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 emptyrawResponseError - body from http responsepublic String GetErrorCode()
public String GetErrorMessage()
public String GetRequestId()
public int GetHttpCode()
@Deprecated public void SetHttpCode(int httpCode)
httpCode - http code, -1 the error is happened in the clientpublic int getHttpCode()
public void setHttpCode(int httpCode)
public String getErrorCode()
public void setErrorCode(String errorCode)
public String getRequestId()
public void setRequestId(String requestId)
public String getRawResponseError()
public void setRawResponseError(String rawResponseError)
Copyright © 2026. All Rights Reserved.