Reinforcement Learning  1.1
reinforcement_learning::status_builder Struct Reference

Helper class used in report_error template funcstions to return status from API calls. More...

#include <api_status.h>

Public Member Functions

 status_builder (i_trace *trace, api_status *status, int code)
 Construct a new status builder object. More...
 
 operator int () const
 return the status when cast to an int
 
 status_builder (const status_builder &&)=delete
 
 status_builder (const status_builder &)=delete
 
status_builderoperator= (const status_builder &)=delete
 
status_builderoperator= (status_builder &&)=delete
 

Public Attributes

int _code
 Error code.
 
api_status_status
 Api status object which can be null.
 
std::ostringstream _os
 String stream used to serialize detailed error message.
 

Detailed Description

Helper class used in report_error template funcstions to return status from API calls.

Constructor & Destructor Documentation

◆ status_builder()

reinforcement_learning::status_builder::status_builder ( i_trace *  trace,
api_status status,
int  code 
)

Construct a new status builder object.

Parameters
tracei_trace object which can be null
statusapi_status object which can be null
codeError code

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