SDK Error Codes (SDK for Java)
SDK error codes are exceptions thrown by ObsClient. They are inherited from class java.lang.RuntimeException. Exceptions are usually OBS server errors, including OBS error codes and error information. This helps users locate and troubleshoot faults.
SDK error codes includes the following:
- OBS API error codes. For details, see OBS Error Codes.
- SDK custom exceptions. For details, see Table 1.
Table 1 SDK custom exceptions Exception
Exception Description
ObsException.getResponseCode()
HTTP status code
ObsException.getErrorCode()
Error code returned by the OBS server
ObsException.getErrorMessage()
Error description returned by the OBS server
ObsException.getErrorRequestId()
Request ID returned by the OBS server
ObsException.getErrorHostId()
Requested server ID
ObsException.getResponseHeaders()
HTTP response headers
ObsException.printStackTrace()
Prints the detailed stack trace of an exception.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot