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_builder & | operator= (const status_builder &)=delete |
| status_builder & | operator= (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. | |
Helper class used in report_error template funcstions to return status from API calls.
| reinforcement_learning::status_builder::status_builder | ( | i_trace * | trace, |
| api_status * | status, | ||
| int | code | ||
| ) |
Construct a new status builder object.
| trace | i_trace object which can be null |
| status | api_status object which can be null |
| code | Error code |