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 | |
#define | SCIP_CALL_EXC(x) |
macro to call scip function with exception handling |
Functions | |
char * | SCIPgetErrorString (SCIP_RETCODE retcode, char *buffer_str, int buffersize) |
translates a SCIP_RETCODE into an error string |
#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().
#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 159 of file scip_exception.hpp.
Referenced by scipexamples::QueensSolver::QueensSolver(), scipexamples::QueensSolver::solve(), and scipexamples::QueensSolver::~QueensSolver().
|
inline |
translates a SCIP_RETCODE into an error string
[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 |
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_NOTIMPLEMENTED, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMETERWRONGVAL, SCIP_PLUGINNOTFOUND, SCIP_READERROR, SCIP_WRITEERROR, and SCIPsnprintf().
Referenced by SCIPException::SCIPException().