public class ClientException extends RuntimeException
ClientException occurs when the response of a request is invalid or a network exception is encountered.
TraceId: In the logs provided by the SDK, this ID tracks the execution information of different stages of a request, and can be used to trace logs for troubleshooting.
| 构造器和说明 |
|---|
ClientException()
Constructs a new instance.
|
ClientException(String message)
Constructor.
|
ClientException(String message,
String traceId)
Constructor.
|
ClientException(String message,
Throwable cause)
Constructor.
|
ClientException(String message,
Throwable cause,
String traceId)
Constructor.
|
ClientException(Throwable cause)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getTraceId()
Returns the TraceId.
|
void |
setTraceId(String traceId) |
public ClientException()
public ClientException(String message)
message - Exception informationpublic ClientException(Throwable cause)
cause - the cause of the exceptionpublic ClientException(String message, String traceId)
message - Exception messagetraceId - TraceIdpublic ClientException(String message, Throwable cause)
message - Exception informationcause - Reason for the exceptionCopyright © 2025. All Rights Reserved.