Represents an HTTP error. This class holds an error message and an optional error code.
More...
#include <http_msg.h>
|
| http_exception (const utility::string_t &whatArg) |
| Creates an http_exception with just a string message and no error code. More...
|
|
| http_exception (int errorCode) |
| Creates an http_exception with from a error code using the current platform error category. The message of the error code will be used as the what() string message. More...
|
|
| http_exception (int errorCode, const utility::string_t &whatArg) |
| Creates an http_exception with from a error code using the current platform error category. More...
|
|
| http_exception (int errorCode, const std::error_category &cat) |
| Creates an http_exception with from a error code and category. The message of the error code will be used as the what string message. More...
|
|
const char * | what () const CPPREST_NOEXCEPT |
| Gets a string identifying the cause of the exception. More...
|
|
const std::error_code & | error_code () const |
| Retrieves the underlying error code causing this exception. More...
|
|
Represents an HTTP error. This class holds an error message and an optional error code.
web::http::http_exception::http_exception |
( |
const utility::string_t & |
whatArg | ) |
|
|
inline |
Creates an http_exception
with just a string message and no error code.
- Parameters
-
whatArg | Error message string. |
web::http::http_exception::http_exception |
( |
int |
errorCode | ) |
|
|
inline |
Creates an http_exception
with from a error code using the current platform error category. The message of the error code will be used as the what() string message.
- Parameters
-
errorCode | Error code value. |
web::http::http_exception::http_exception |
( |
int |
errorCode, |
|
|
const utility::string_t & |
whatArg |
|
) |
| |
|
inline |
Creates an http_exception
with from a error code using the current platform error category.
- Parameters
-
errorCode | Error code value. |
whatArg | Message to use in what() string. |
web::http::http_exception::http_exception |
( |
int |
errorCode, |
|
|
const std::error_category & |
cat |
|
) |
| |
|
inline |
Creates an http_exception
with from a error code and category. The message of the error code will be used as the what
string message.
- Parameters
-
errorCode | Error code value. |
cat | Error category for the code. |
const std::error_code& web::http::http_exception::error_code |
( |
| ) |
const |
|
inline |
Retrieves the underlying error code causing this exception.
- Returns
- A std::error_code.
const char* web::http::http_exception::what |
( |
| ) |
const |
|
inline |
Gets a string identifying the cause of the exception.
- Returns
- A null terminated character string.
The documentation for this class was generated from the following file: