• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. Developer Guide (Android SDK)
  4. Troubleshooting
  5. SDK Custom Exceptions

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