Compartir a través de


http_exception::http_exception Constructor

Creates an http_exception with just a string message and no error code.

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
);

Parameters

  • whatArg
    Message to use in what() string.

  • errorCode
    Error code value.

  • cat
    Error category for the code.

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

http_exception Class