17#ifndef MS_HTTP_HELPER_RETURN_HPP
18#define MS_HTTP_HELPER_RETURN_HPP
23namespace matrix_science
70 operator bool ()
const;
74 ErrorTypeCode getErrorType()
const;
75 ErrorTypeCode errorType()
const {
return getErrorType(); }
78 int getSystemError()
const;
79 int systemError()
const {
return getSystemError(); }
82 int getHttpStatusCode()
const;
83 int httpStatusCode()
const {
return getHttpStatusCode(); }
86 std::string getErrorText()
const;
87 std::string errorText()
const {
return getErrorText(); }
90 ErrorTypeCode errorType_;
93 std::string errorText_;
Indicates any problem that may have occurred during a request to an ms_http_helper object.
Definition: ms_http_helper_return.hpp:37
ErrorTypeCode
Definitions for types of problem that can be encountered.
Definition: ms_http_helper_return.hpp:44
@ ERR_SYSTEM
A problem was found with one of the operating system functions.
Definition: ms_http_helper_return.hpp:47
@ ERR_NONE
No problem was encountered; the operation completed successfully.
Definition: ms_http_helper_return.hpp:45
@ ERR_ABORTEDBYUSER
The operation was aborted prematurely at the request of the operator.
Definition: ms_http_helper_return.hpp:46
@ ERR_HTTP
A problem was reported via the HTTP channel.
Definition: ms_http_helper_return.hpp:48