SDK Custom Exceptions
API Description
SDK custom exceptions are thrown by ObsClient and are inherited from class \RuntimeException. Exceptions are usually OBS server-side errors, including OBS error codes and error information. This facilitates users to locate problems and troubleshot faults.
Namespace
Class |
Parent Namespace |
---|---|
ObsException |
Obs |
Method Description
Method |
Return Value Type |
Description |
---|---|---|
ObsException->getExceptionCode |
string |
Error code returned by the OBS server |
ObsException->getExceptionMessage |
string |
Error description returned by the OBS server |
ObsException->getRequestId |
string |
Request ID returned by the OBS server |
ObsException->getHostId |
string |
Requested server ID |
ObsException->getResponse |
GuzzleHttp\Psr7\Response |
HTTP response object |
ObsException->getRequest |
GuzzleHttp\Psr7\Request |
HTTP request object |
ObsException->getStatusCode |
integer |
HTTP status code |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot