C++ Rest SDK
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
|
Represents a websocket error. This class holds an error message and an optional error code. More...
#include <ws_client.h>
Public Member Functions | |||||
websocket_exception (const utility::string_t &whatArg) | |||||
Creates an websocket_exception with just a string message and no error code. More... | |||||
websocket_exception (int errorCode) | |||||
Creates a websocket_exception 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... | |||||
websocket_exception (int errorCode, const utility::string_t &whatArg) | |||||
Creates a websocket_exception from a error code using the current platform error category. More... | |||||
websocket_exception (int errorCode, const std::error_category &cat) | |||||
Creates a websocket_exception from a error code and category. The message of the error code will be used as the what string message. More... | |||||
websocket_exception (std::error_code code, const utility::string_t &whatArg) | |||||
Creates a websocket_exception from a error code and string message to use as the what() argument.
| |||||
const char * | what () const CPPREST_NOEXCEPT | ||||
Gets a string identifying the cause of the exception. More... | |||||
const std::error_code & | error_code () const CPPREST_NOEXCEPT | ||||
Gets the underlying error code for the cause of the exception. More... | |||||
Represents a websocket error. This class holds an error message and an optional error code.
|
inline |
Creates an websocket_exception
with just a string message and no error code.
whatArg | Error message string. |
|
inline |
Creates a websocket_exception
from a error code using the current platform error category. The message of the error code will be used as the what() string message.
errorCode | Error code value. |
|
inline |
Creates a websocket_exception
from a error code using the current platform error category.
errorCode | Error code value. |
whatArg | Message to use in what() string. |
|
inline |
Creates a websocket_exception
from a error code and category. The message of the error code will be used as the what
string message.
errorCode | Error code value. |
cat | Error category for the code. |
|
inline |
Creates a websocket_exception
from a error code and string message to use as the what() argument.
code | Error code. |
whatArg | Message to use in what() string. |
|
inline |
Gets the underlying error code for the cause of the exception.
error_code
object associated with the exception.
|
inline |
Gets a string identifying the cause of the exception.