public class LogException extends Exception
| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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)
Deprecated.
Use setHttpCode(int httpCode) instead.
|
void |
setRawResponseError(String rawResponseError) |
void |
setRequestId(String requestId) |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic 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 © 2025. All Rights Reserved.