Medial Code Documentation
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
c_api_error.cc File Reference

C error handling. More...

#include <dmlc/thread_local.h>
#include "xgboost/c_api.h"
#include "./c_api_error.h"

Data Structures

struct  XGBAPIErrorEntry
 

Typedefs

using XGBAPIErrorStore = dmlc::ThreadLocalStore< XGBAPIErrorEntry >
 

Functions

XGB_DLL const char * XGBGetLastError ()
 get string message of the last error
 
void XGBAPISetLastError (const char *msg)
 Set the last error message needed by C API.
 

Detailed Description

C error handling.

Copyright (c) 2015 by Contributors

Function Documentation

◆ XGBAPISetLastError()

void XGBAPISetLastError ( const char *  msg)

Set the last error message needed by C API.

Parameters
msgThe error message to set.