Medial Code Documentation
|
Error handling for C API. More...
Go to the source code of this file.
Macros | |
#define | API_BEGIN() |
macro to guard beginning and end section of all functions | |
#define | API_BEGIN_UNGUARD() try { |
#define | API_END() |
every function starts with API_BEGIN(); and finishes with API_END() | |
#define | CHECK_HANDLE() |
#define | xgboost_CHECK_C_ARG_PTR(out_ptr) |
Functions | |
void | XGBAPISetLastError (const char *msg) |
Set the last error message needed by C API. | |
int | XGBAPIHandleException (const dmlc::Error &e) |
handle exception thrown out | |
Error handling for C API.
Copyright (c) 2015-2022 by Contributors
#define API_BEGIN | ( | ) |
macro to guard beginning and end section of all functions
#define API_END | ( | ) |
every function starts with API_BEGIN(); and finishes with API_END()
#define CHECK_HANDLE | ( | ) |
#define xgboost_CHECK_C_ARG_PTR | ( | out_ptr | ) |
|
inline |
handle exception thrown out
e | the exception |
void XGBAPISetLastError | ( | const char * | msg | ) |
Set the last error message needed by C API.
msg | The error message to set. |