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