Exception class for calls to XGBoost C API. More...
#include <XGBoostPredictor.h>
Public Member Functions | |
XGBoostPredictorException (std::string const &functionName, int exitCode) | |
Constructor. | |
char const * | what () const noexcept override |
Returns the explanatory string. | |
Private Attributes | |
std::string | message_ |
Explanatory string. |
Exception class for calls to XGBoost C API.
XGBoostPredictorException::XGBoostPredictorException | ( | std::string const & | functionName, | |
int | exitCode | |||
) |
Constructor.
[in] | functionName | Name of the C API function that was called. |
[in] | exitCode | Exit code returned by the function. |