10Duke Scale C++ Client
All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
tenduke::http::HTTPRequestException Class Reference

#include <HTTPRequestException.h>

Detailed Description

This exception is thrown when a HTTP-request fails for HTTP-specific reasons in the client end.

Some possible causes for this exception are:

  • Invalid HTTP method
  • Malformed URL

This exception is NOT thrown when the call technically succeeds, but server responds with status code >= 400. The higher-level clients should handle those conditions and act accordingly. (Clients can use tenduke::http::HTTPResponseException and its subclasses for those conditions).

Inheritance diagram for tenduke::http::HTTPRequestException:
tenduke::net::NetworkingException tenduke::TendukeException

Public Member Functions

 HTTPRequestException (const std::string &message)
 Constructs new instance.
 
- Public Member Functions inherited from tenduke::net::NetworkingException
 NetworkingException (const std::string &message)
 Constructs new instance.
 
- Public Member Functions inherited from tenduke::TendukeException
 TendukeException (const std::string &message)
 Constructs new instance.
 

Constructor & Destructor Documentation

◆ HTTPRequestException()

tenduke::http::HTTPRequestException::HTTPRequestException ( const std::string & message)
inlineexplicit

Constructs new instance.

Parameters
message-

The documentation for this class was generated from the following file: