http_exception

Module: Exceptions

The class that describes the HTTP errors.

#include <exception.h>

Inherits from dolbyio::comms::io_exception, dolbyio::comms::exception, exception

Public Functions

Name
http_exception(int code)
The constructor that takes the HTTP error code.
inthttp_code() const
The accessor that returns the HTTP error code of the exception.

Additional inherited members

Public Functions inherited from dolbyio::comms::io_exception

Name
io_exception(const std::string & description)
The constructor that takes the description of the exception.

Public Functions inherited from dolbyio::comms::exception

Name
~exception() =default
const char *what() const override
Overrides to std::exception that returns a description of the exception.
exception(const std::string & description)
The constructor that takes the description of the exception.

Protected Attributes inherited from dolbyio::comms::exception

Name
std::stringfulldescription
class dolbyio::comms::http_exception;

Public Functions Documentation

function http_exception

inline http_exception(
    int code
)

The constructor that takes the HTTP error code.

Parameters:

  • code The HTTP error code.

function http_code

inline int http_code() const

The accessor that returns the HTTP error code of the exception.

Return: An integer value that represents the HTTP error code.



Did this page help you?