Properties

$response

$response : \Qcloud\Cos\Exception\Response

Type

\Qcloud\Cos\Exception\Response — Response

$request

$request : \Psr\Http\Message\RequestInterface

Type

RequestInterface — Request

$requestId

$requestId : string

Type

string — Request ID

$exceptionType

$exceptionType : string

Type

string — Exception type (client / server)

$exceptionCode

$exceptionCode : string

Type

string — Exception code

Methods

setExceptionCode()

setExceptionCode(string  $code) : mixed

Set the exception code

Parameters

string $code

Exception code

Returns

mixed —

getExceptionCode()

getExceptionCode() : string|null

Get the exception code

Returns

string|null —

setExceptionType()

setExceptionType(string  $type) : mixed

Set the exception type

Parameters

string $type

Exception type

Returns

mixed —

getExceptionType()

getExceptionType() : string|null

Get the exception type (one of client or server)

Returns

string|null —

setRequestId()

setRequestId(string  $id) : mixed

Set the request ID

Parameters

string $id

Request ID

Returns

mixed —

getRequestId()

getRequestId() : string|null

Get the Request ID

Returns

string|null —

setResponse()

setResponse(\Qcloud\Cos\Exception\Response  $response) : mixed

Set the associated response

Parameters

\Qcloud\Cos\Exception\Response $response

Response

Returns

mixed —

getResponse()

getResponse() : \Qcloud\Cos\Exception\Response|null

Get the associated response object

Returns

\Qcloud\Cos\Exception\Response|null —

setRequest()

setRequest(\Psr\Http\Message\RequestInterface  $request) : mixed

Set the associated request

Parameters

\Psr\Http\Message\RequestInterface $request

Returns

mixed —

getRequest()

getRequest() : \Psr\Http\Message\RequestInterface|null

Get the associated request object

Returns

\Psr\Http\Message\RequestInterface|null —

getStatusCode()

getStatusCode() : int|null

Get the status code of the response

Returns

int|null —

__toString()

__toString() : string

Cast to a string

Returns

string —

getCosRequestId()

getCosRequestId() : string|null

Get the request ID of the error. This value is only present if a response was received, and is not present in the event of a networking error.

Same as getRequestId() method, but matches the interface for SDKv3.

Returns

string|null —

Returns null if no response was received

getCosErrorType()

getCosErrorType() : string|null

Get the Cos error type.

Same as getExceptionType() method, but matches the interface for SDKv3.

Returns

string|null —

Returns null if no response was received

getCosErrorCode()

getCosErrorCode() : string|null

Get the Cos error code.

Same as getExceptionCode() method, but matches the interface for SDKv3.

Returns

string|null —

Returns null if no response was received