code = $code; $this->message = $message; $this->requestId = $requestId; } /** * The __toString() method allows a class to decide how it will react when * it is treated like a string. * * @return string */ public function __toString() { return "Aliyun_Log_Exception: \n{\n ErrorCode: $this->code,\n ErrorMessage: $this->message\n RequestId: $this->requestId\n}\n"; } /** * Get Aliyun_Log_Exception error code. * * @return string */ public function getErrorCode() { return $this->code; } /** * Get Aliyun_Log_Exception error message. * * @return string */ public function getErrorMessage() { return $this->message; } /** * Get log service sever requestid, '' is set if client or Http error. * * @return string */ public function getRequestId() { return $this->requestId; } }