http_exception::http_exception 构造函数

仅使用字符串消息(不使用错误代码)创建 http_exception

http_exception(
   const utility::string_t &whatArg
);

http_exception(
   int errorCode
);

http_exception(
   int errorCode,
   const utility::string_t &whatArg
);

http_exception(
   int errorCode,
   const std::error_category &cat
);

参数

  • whatArg
    用于 what() 字符串的消息。

  • errorCode
    错误代码值。

  • cat
    代码的错误类别。

要求

**标头:**http_msg.h

**命名空间:**web::http

请参见

参考

http_exception 类