http_exception Class

Represents an HTTP error. This class holds an error message and an optional error code.

Warning

This topic contains information for the C++ REST SDK 1.0 (codename "Casablanca"). If you are using a later version from the Codeplex Casablanca web page, then use the local documentation at https://casablanca.codeplex.com/documentation.

class http_exception : public std::exception;

Members

Public Constructors

Name

Description

http_exception::http_exception Constructor

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

http_exception::~http_exception Destructor

Public Methods

Name

Description

http_exception::error_code Method

http_exception::what Method

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

web::http Namespace