SDK Custom Exceptions
SDK custom exceptions (ObsException), thrown by ObsClient, are inherited from class java.lang.RuntimeException. Exceptions are usually OBS server errors, including OBS error codes and error information. This facilitates users to locate problems and troubleshot faults.
ObsException contains the following error information:
- 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
Last Article: OBS Server-Side Error Codes
Next Article: SDK Common Response Headers
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.