Detailed Description
exception handling for SCIP
Definition in file scip_exception.hpp.
Go to the source code of this file.
Data Structures | |
class | SCIPException |
exception handling class for SCIP More... | |
Macros | |
#define | SCIP_MSG_MAX 100 |
maximal number of characters in an error messages More... | |
#define | SCIP_CALL_EXC(x) |
macro to call scip function with exception handling More... | |
Functions | |
char * | SCIPgetErrorString (SCIP_RETCODE retcode, char *buffer_str, int buffersize) |
translates a SCIP_RETCODE into an error string More... | |
Macro Definition Documentation
◆ SCIP_MSG_MAX
#define SCIP_MSG_MAX 100 |
maximal number of characters in an error messages
Definition at line 30 of file scip_exception.hpp.
Referenced by SCIPException::SCIPException().
◆ SCIP_CALL_EXC
#define SCIP_CALL_EXC | ( | x | ) |
macro to call scip function with exception handling
this macro calls a SCIP function and throws an instance of SCIPException if anything went wrong
Definition at line 156 of file scip_exception.hpp.
Referenced by scipexamples::QueensSolver::QueensSolver(), scipexamples::QueensSolver::solve(), and scipexamples::QueensSolver::~QueensSolver().
Function Documentation
◆ SCIPgetErrorString()
|
inline |
translates a SCIP_RETCODE into an error string
- Parameters
-
[in] retcode SCIP_RETCODE you want to translate [in] buffersize size of buffer [out] buffer_str buffer to character array to store translated message, this must be at least of size SCIP_MSG_MAX
- Returns
- buffer_str or NULL, if retcode could not be translated
Definition at line 40 of file scip_exception.hpp.
References NULL, SCIP_BRANCHERROR, SCIP_ERROR, SCIP_FILECREATEERROR, SCIP_INVALIDCALL, SCIP_INVALIDDATA, SCIP_INVALIDRESULT, SCIP_KEYALREADYEXISTING, SCIP_LPERROR, SCIP_MAXDEPTHLEVEL, SCIP_NOFILE, SCIP_NOMEMORY, SCIP_NOPROBLEM, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMETERWRONGVAL, SCIP_PLUGINNOTFOUND, SCIP_READERROR, SCIP_WRITEERROR, and SCIPsnprintf().
Referenced by SCIPException::SCIPException().