10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::ee::APIRequest< RESPONSE > Class Template Referenceabstract

#include <APIRequest.h>

Detailed Description

template<class RESPONSE>
class tenduke::ee::APIRequest< RESPONSE >

Generic base for API requests.

Template Parameters
RESPONSEtype of the response.

Public Member Functions

virtual RESPONSE execute ()=0
 Execute the request synchronously.
 

Member Function Documentation

◆ execute()

template<class RESPONSE >
virtual RESPONSE tenduke::ee::APIRequest< RESPONSE >::execute ( )
pure virtual

Execute the request synchronously.

Returns
the response.
Exceptions
tenduke::http::HTTPExceptione.g. internal server errors, invalid configuration (e.g. HTTP 404 not found) et al.
tenduke::net::NetworkingExceptione.g. timeouts, networking communication problems
tenduke::TimedOutgeneric time outs
tenduke::TendukeExceptiondepending on business logic problems (invalid json, cryptography issues, unexpected response etc.) These are usually subclasses of tenduke::TendukeException

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