Properties

$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) 

Set the exception code

Parameters

string $code

Exception code

getExceptionCode()

getExceptionCode() : string|null

Get the exception code

Returns

string|null

setExceptionType()

setExceptionType(string  $type) 

Set the exception type

Parameters

string $type

Exception type

getExceptionType()

getExceptionType() : string|null

Get the exception type (one of client or server)

Returns

string|null

setRequestId()

setRequestId(string  $id) 

Set the request ID

Parameters

string $id

Request ID

getRequestId()

getRequestId() : string|null

Get the Request ID

Returns

string|null

setResponse()

setResponse(\Guzzle\Http\Message\Response  $response) 

Set the associated response

Parameters

\Guzzle\Http\Message\Response $response

Response

getStatusCode()

getStatusCode() : integer|null

Get the status code of the response

Returns

integer|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