Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.
-
API Reference
- Overview
- Initialization
- Predefined Constants
-
Bucket-Related APIs
- PUT Bucket
- GET Buckets
- HEAD Bucket
- DELETE Bucket
- GET Objects
- GET Object versions
- List Multipart uploads
- Obtain Bucket Metadata
- GET Bucket location
- GET Bucket storageinfo
- PUT Bucket quota
- GET Bucket quota
- Set Bucket storagePolicy
- GET Bucket storagePolicy
- PUT Bucket acl
- GET Bucket acl
- PUT Bucket logging
- GET Bucket logging
- PUT Bucket policy
- GET Bucket policy
- DELETE Bucket policy
- PUT Bucket lifecycle
- GET Bucket lifecycle
- DELETE Bucket lifecycle
- PUT Bucket website
- GET Bucket website
- DELETE Bucket website
- PUT Bucket versioning
- GET Bucket versioning
- PUT Bucket cors
- GET Bucket cors
- DELETE Bucket cors
- PUT Bucket tagging
- GET Bucket tagging
- DELETE Bucket tagging
- Objects-Related APIs
- Other APIs
- Change History
- General Reference
Copied.
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