scip_exception.hpp
Go to the documentation of this file.
27 // unfortunately SCIP has no method to get the string of an error code, you can just print it to a file
37 * @param[out] buffer_str buffer to character array to store translated message, this must be at least of size SCIP_MSG_MAX
76 (void) SCIPsnprintf(buffer_str, buffersize, "method cannot be called at this time in solution process");
138 * this overrides the corresponding method of std::exception in order to allow you to catch all of your exceptions as std::exception
156 * this macro calls a SCIP function and throws an instance of SCIPException if anything went wrong
#define SCIP_MSG_MAX
maximal number of characters in an error messages
Definition: scip_exception.hpp:30
Definition: type_retcode.h:38
Definition: type_retcode.h:44
char * SCIPgetErrorString(SCIP_RETCODE retcode, char *buffer_str, int buffersize)
translates a SCIP_RETCODE into an error string
Definition: scip_exception.hpp:40
Definition: type_retcode.h:47
Definition: type_retcode.h:36
Definition: type_retcode.h:42
Definition: type_retcode.h:48
internal miscellaneous methods
Definition: type_retcode.h:33
Definition: type_retcode.h:46
Definition: type_retcode.h:34
Definition: type_retcode.h:51
Definition: type_retcode.h:49
Definition: type_retcode.h:41
Definition: type_retcode.h:39
Definition: type_retcode.h:52
Definition: type_retcode.h:40
SCIPException(SCIP_RETCODE retcode)
constructs a SCIPEexception from an error code
Definition: scip_exception.hpp:127
Definition: type_retcode.h:45
Definition: type_retcode.h:50
Definition: type_retcode.h:37
Definition: type_retcode.h:35
Definition: type_retcode.h:43
SCIP callable library.