waterlinkedsonar
C++ client library for the Water Linked Sonar 3D-15
Loading...
Searching...
No Matches
Public Member Functions | List of all members
waterlinked::sonar::HttpError Class Reference

Transport failure or non-2xx HTTP response. More...

#include <waterlinkedsonar/types.hpp>

Inheritance diagram for waterlinked::sonar::HttpError:
waterlinked::sonar::ForceSyncOngoingError waterlinked::sonar::TimeAlreadySynchronizedError

Public Member Functions

 HttpError (const std::string &what, long status_code)
 status_code is the HTTP status, or 0 when the request never completed (connect failure or timeout).
 
long status_code () const
 HTTP status code of the response, or 0 for transport failure.
 

Detailed Description

Transport failure or non-2xx HTTP response.

Constructor & Destructor Documentation

◆ HttpError()

waterlinked::sonar::HttpError::HttpError ( const std::string &  what,
long  status_code 
)
inline

status_code is the HTTP status, or 0 when the request never completed (connect failure or timeout).

Member Function Documentation

◆ status_code()

long waterlinked::sonar::HttpError::status_code ( ) const
inline

HTTP status code of the response, or 0 for transport failure.


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