On this page

Show all

SDK Custom Exceptions

Updated on 2024-04-30 GMT+08:00

SDK custom exceptions (Obs\ObsException), thrown by ObsClient, are inherited from class \RuntimeException. Exceptions are usually OBS server errors, including OBS error codes and error information. This facilitates users to locate problems and troubleshot faults.

Obs\ObsException contains the following error information:

  • ObsException->getStatusCode: HTTP status code
  • ObsException->getExceptionCode: Error code returned by the OBS server
  • ObsException->getExceptionMessage: Error description returned by the OBS server
  • ObsException->getRequestId: Request ID returned by the OBS server
  • ObsException->getHostId: Requested server ID.
  • ObsException->getResponse: HTTP response object
  • ObsException->getRequest: HTTP request object
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback