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:47
Definition: type_retcode.h:53
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:56
Definition: type_retcode.h:45
Definition: type_retcode.h:51
Definition: type_retcode.h:57
internal miscellaneous methods
Definition: type_retcode.h:42
Definition: type_retcode.h:55
Definition: type_retcode.h:43
Definition: type_retcode.h:60
Definition: type_retcode.h:58
Definition: type_retcode.h:50
Definition: type_retcode.h:48
Definition: type_retcode.h:61
Definition: type_retcode.h:49
SCIPException(SCIP_RETCODE retcode)
constructs a SCIPEexception from an error code
Definition: scip_exception.hpp:127
Definition: type_retcode.h:54
Definition: type_retcode.h:59
Definition: type_retcode.h:46
Definition: type_retcode.h:44
Definition: type_retcode.h:52
SCIP callable library.