Updated on 2024-05-08 GMT+08:00

SDK Custom Exceptions

SDK custom exceptions (ObsException) are thrown by ObsClient. Exceptions are usually OBS server-side errors, including OBS error codes and error information and aim to help users locate problems and troubleshot faults.

ObsException contains the following error information:

  • ObsException.StatusCode: HTTP status code
  • ObsException.ErrorCode: OBS server-side error code
  • ObsException.ErrorMessage: Error description returned by the OBS server
  • ObsException.RequestId: Request ID returned by the OBS server
  • ObsException.HostId: Requested server ID