1 /*
2  * Copyright 1999-2019 Alibaba Cloud All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include <alibabacloud/core/Error.h>
18 
19 namespace AlibabaCloud {
20 
Error(std::string code,const std::string message)21 Error::Error(std::string code, const std::string message)
22     : errorCode_(code), message_(message), host_(), requestId_(), detail_() {}
23 
errorCode() const24 std::string Error::errorCode() const { return errorCode_; }
errorMessage() const25 std::string Error::errorMessage() const { return message_; }
host() const26 std::string Error::host() const { return host_; }
requestId() const27 std::string Error::requestId() const { return requestId_; }
detail() const28 std::string Error::detail() const { return detail_; }
setErrorCode(const std::string & code)29 void Error::setErrorCode(const std::string &code) { errorCode_ = code; }
setErrorMessage(const std::string & message)30 void Error::setErrorMessage(const std::string &message) { message_ = message; }
setHost(const std::string & host)31 void Error::setHost(const std::string &host) { host_ = host; }
setRequestId(const std::string & request)32 void Error::setRequestId(const std::string &request) { requestId_ = request; }
setDetail(const std::string & detail)33 void Error::setDetail(const std::string &detail) { detail_ = detail; }
34 
35 } // namespace AlibabaCloud
36