Conscience Core
Public Member Functions | List of all members
conscience_core::communication::HTTP::HttpErrorResponseException Class Reference

#include <CscHttpClient.h>

Inheritance diagram for conscience_core::communication::HTTP::HttpErrorResponseException:
conscience_utils::CscException

Public Member Functions

 HttpErrorResponseException (const string &errorMessage, optional< unsigned > httpCode) noexcept
 
 ~HttpErrorResponseException () noexcept override=default
 
optional< unsigned > getHttpCode () const
 
- Public Member Functions inherited from conscience_utils::CscException
 CscException (const string &errorMessage) noexcept
 
 ~CscException () noexcept override=default
 
const char * what () const noexcept override
 
virtual const string & getErrorMessage () const
 

Detailed Description

thrown when a http request returns a response code in error (no 2XX)

Constructor & Destructor Documentation

◆ HttpErrorResponseException()

conscience_core::communication::HTTP::HttpErrorResponseException::HttpErrorResponseException ( const string &  errorMessage,
optional< unsigned >  httpCode 
)
noexcept

◆ ~HttpErrorResponseException()

conscience_core::communication::HTTP::HttpErrorResponseException::~HttpErrorResponseException ( )
overridedefaultnoexcept

Member Function Documentation

◆ getHttpCode()

optional< unsigned > conscience_core::communication::HTTP::HttpErrorResponseException::getHttpCode ( ) const

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