The Exception of the sls request & response.

author sls_dev
package SLS_PHP_SDK

 Methods

Aliyun_Sls_Exception constructor

__construct(string $code, string $message, string $requestId = ''

Parameters

$code

string

SLS error code.

$message

string

detailed information for the exception.

$requestId

string

the request id of the response, '' is set if client error.

The __toString() method allows a class to decide how it will react when it is treated like a string.

__toString() : string

Returns

string

Get Aliyun_Sls_Exception error code.

getErrorCode() : string

Returns

string

Get Aliyun_Sls_Exception error message.

getErrorMessage() : string

Returns

string

Get Sls sever requestid, '' is set if client or Http error.

getRequestId() : string

Returns

string

 Properties

 

$requestId

$requestId : string

Default