Properties

$errorCode

$errorCode : string

Type

string

$errorMessage

$errorMessage : string

Type

string

$requestId

$requestId : string

Type

string

Methods

getErrorCode()

getErrorCode() : string

Returns

string

setErrorCode()

setErrorCode() 

getErrorMessage()

getErrorMessage() : string

Returns

string

setErrorMessage()

setErrorMessage(  $errorMessage) 

Parameters

$errorMessage

setErrorType()

setErrorType() 

__construct()

__construct(\AlibabaCloud\Client\Result\Result|null  $result, string  $errorMessage = \AlibabaCloud\Client\SDK::RESPONSE_EMPTY, string  $errorCode = \AlibabaCloud\Client\SDK::SERVICE_UNKNOWN_ERROR) 

ServerException constructor.

Parameters

\AlibabaCloud\Client\Result\Result|null $result
string $errorMessage
string $errorCode

getRequestId()

getRequestId() : string

Returns

string

getErrorType()

getErrorType() 

getHttpStatus()

getHttpStatus() 

resolvePropertiesByReturn()

resolvePropertiesByReturn() : void

Resolve the error message based on the return of the server.

distinguishSignatureErrors()

distinguishSignatureErrors() 

If the string to be signed are the same with server's, it is considered a credential error.

bodyAsErrorMessage()

bodyAsErrorMessage() 

If the error message matches the default message and the server has returned content, use the return content

getMessageString()

getMessageString() : string

Get standard exception message.

Returns

string