|
Vowpal Wabbit
|
Namespaces | |
| namespace | error_code |
Classes | |
| class | api_status |
| Report status of all API calls. More... | |
| class | status_builder |
| Helper class used in report_error template funcstions to return status from API calls. More... | |
Typedefs | |
| using | i_trace = void |
Functions | |
| template<typename Last > | |
| void | report_error (std::ostringstream &os, const Last &last) |
| Ends recursion of report_error variadic template with the Last argument. More... | |
| template<typename First , typename... Rest> | |
| void | report_error (std::ostringstream &os, const First &first, const Rest &... rest) |
| Begins recursion of report_error variadic template with ostringstream to serialize error information. More... | |
| template<typename... All> | |
| int | report_error (api_status *status, int scode, const All &... all) |
| The main report_error template used to serialize error into api_status The method most end users will use with a status code and a number of objects to be serialised into an api_status. More... | |
| template<typename T > | |
| VW::experimental::status_builder & | operator<< (VW::experimental::status_builder &sb, const T &val) |
| left shift operator to serialize types into stringstream held in status_builder More... | |
| int | report_error (status_builder &sb) |
| Terminates recursion of report_error. More... | |
| template<typename Last > | |
| int | report_error (status_builder &sb, const Last &last) |
| report_error that takes the final paramter More... | |
| template<typename First , typename... Rest> | |
| int | report_error (status_builder &sb, const First &first, const Rest &... rest) |
| variadic template report_error that takes a list of parameters More... | |
| using VW::experimental::i_trace = typedef void |
| VW::experimental::status_builder & VW::experimental::operator<< | ( | VW::experimental::status_builder & | sb, |
| const T & | val | ||
| ) |
left shift operator to serialize types into stringstream held in status_builder
| T | Type to serialize |
| sb | Status builder that holds serialized error message |
| val | Error code |
| int VW::experimental::report_error | ( | api_status * | status, |
| int | scode, | ||
| const All &... | all | ||
| ) |
The main report_error template used to serialize error into api_status The method most end users will use with a status code and a number of objects to be serialised into an api_status.
| All | All the type arguments to the variadic template |
| status | Status object to serialize error description into |
| scode | Error code |
| all | Parameter list argument for the variadic template |
|
inline |
Terminates recursion of report_error.
| sb | status_builder that contains the serialized error string |
| int VW::experimental::report_error | ( | status_builder & | sb, |
| const First & | first, | ||
| const Rest &... | rest | ||
| ) |
variadic template report_error that takes a list of parameters
| First | Type of first parameter in parameter list |
| Rest | Tail parameter types in paramter list |
| sb | status_builder that contains the serialized error string |
| first | First parameter value |
| rest | Tail paramter value list |
| int VW::experimental::report_error | ( | status_builder & | sb, |
| const Last & | last | ||
| ) |
report_error that takes the final paramter
| Last | Final paramter type |
| sb | status_builder that contains the serialized error string |
| last | Final parameter value |
| void VW::experimental::report_error | ( | std::ostringstream & | os, |
| const First & | first, | ||
| const Rest &... | rest | ||
| ) |
Begins recursion of report_error variadic template with ostringstream to serialize error information.
| First | Type of first parameter to report_error |
| Rest | Rest of the parameter type list |
| os | ostringstream that contains serialized error data |
| first | value of the first parameter to report_error |
| rest | rest of the values to report error |
| void VW::experimental::report_error | ( | std::ostringstream & | os, |
| const Last & | last | ||
| ) |
Ends recursion of report_error variadic template with the Last argument.
| Last | type of Last argument to report_error |
| os | ostringstream that contains serialized error data |
| last | value of last argument to report_error |